views:

14

answers:

1

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

A: 

You should wait for the MediaOpened event before attempting to set the Position

OurElement.MediaOpened += (s, args) => 
{
  OurElement.Position = TimeSpan.FromSeconds(NowPlayingParameters.Position);
}
AnthonyWJones
Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Miroo