This project is read-only.

Issue when setting the source of the player more than twice on live streams

Topics: Windows Phone 8
Apr 15, 2013 at 10:49 AM

I've just posted a new issue in the tracker, and I wanted to know, on the side, if any of you had experienced a similar behaviour, and which workaround you had put in place.

The problem is when you set the Source property of the player more than twice, in the context of live streams (Smooth Streaming), the video just won't play.

We've been able to build a sample app to reproduce the issue, so our full app stack should not be to blame here :-)


Apr 15, 2013 at 7:32 PM
Eric, thanks for the repro. I think what is happening is: The SmoothStreamingMediaElement needs to be closed (source nulled) when you are leaving the page. If you don't do this, it will stay loaded and eventually you will run into the limit of only 2 MediaElements allowed in memory / app.

To fix this issue, you can add the following code to MainPage.xaml.cs:
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
Apr 15, 2013 at 9:42 PM
Indeed that fixes the problem.
Thanks Tim !