This project is read-only.

Windows Phone 8 Navigate and back

Topics: Windows Phone 8
May 29, 2013 at 6:17 PM
Edited May 29, 2013 at 6:17 PM
Hi there,

I built a page in my application where I display an embedded video player. I start playback, and move away from the page (either by pressing the search button, or locking the phone, or opening a subpage), and then come back.

The player is frozen, no media is loaded, I can't use it.

What's wrong?
<pf:MediaPlayer x:Name="Player" Loaded="Player_Loaded" Source="{Binding Path=Source}"  Position="{Binding Path=Position, Mode=TwoWay}" Tap="Player_OnTap" />
I was expecting the player to get restored to its most recent state, or at least to leverage its databindings to reactivate.
Jun 18, 2013 at 5:59 PM
You will need to add a little extra code to your app to make this work correctly. Please take a look at the main page in our test app for an example on how to deal with suspend, resume and tombstoning on WP8.