i use this line to set my media element position
OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
but it stays 00:00 why can't it jump to the position value
i use this line to set my media element position
OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
but it stays 00:00 why can't it jump to the position value
You should wait for the MediaOpened
event before attempting to set the Position
OurElement.MediaOpened += (s, args) =>
{
OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
}