Seeking stopped working with latest update (1.2)

Topics: Windows 8 Xaml
May 6, 2013 at 1:21 AM
Edited May 7, 2013 at 5:33 AM
I have enabled skipnext and skipprevious button on player. when Next button clicked, I need to move to next video. I have not attached playlist because next video is not always predictable (based on my app behavior). is there any event that I can listen to when these buttons are clicked?
Right now I was relying on mediaEnded and SkippingBack events. i.e. when next button clicked, media ends and then I set source to new video. When previous button clicked, SkippingBack is called, if position is zero then set source to previous video. this was working fine until I moved to latest update.

With latest update, skip next works well but when I do skip previous, video changes to previous video but seek Thumb doesn't move beyond zero position. if I press previous one more time then thumb starts moving but seek stop working after that (for all videos). i.e. when I drag thumb to new position, it resets back and doesn't allow me to seek to new position.
May 8, 2013 at 10:42 PM
any pointers on how to handle skip next/previous without using playlist plugin?
Coordinator
May 17, 2013 at 7:05 PM
Hi Jack, I haven't fully investigated what change caused this new behavior but I think this will work for you (and be more efficient). Note the e.Canceled = true
void player_SkippingBack(object sender, SkipRoutedEventArgs e)
{
    e.Canceled = true;
    player.Source = new Uri("http://smf.blob.core.windows.net/samples/videos/wildlife.mp4");
}

void player_SkippingAhead(object sender, SkipRoutedEventArgs e)
{
    e.Canceled = true;
    player.Source = new Uri("http://smf.blob.core.windows.net/samples/videos/bigbuck.mp4");
}
Let me know if you continue to have trouble getting this to work.
Jun 12, 2014 at 9:13 PM
works :)!!