How can seek a Vod without use the UI?

Topics: Windows Phone 8
Jul 18, 2013 at 7:38 PM
Hi all.

Im trying to seek to determinate posicion of the VOD, why?, my app saves the current posicion when user go back in the navigation and I wish to set the saved posicion when user come back. Actually I try the next code:

media_player.StartTime = new TimeSpan(0, 0, 0, 0, (int)_seekTo);
media_player.LivePosition = new TimeSpan(0, 0, 0, 0, (int)_seekTo);
media_player.Position = new TimeSpan(0, 0, 0, 0, (int)_seekTo);

Any idea?, help me please.

Jul 18, 2013 at 9:54 PM
Hello, to do this you should set the StartupPosition property no later than in the MediaOpened event. (MediaOpened event is your last opportunity to set this).
Jul 18, 2013 at 10:22 PM
Thank you so much bro!!!

It works very well.