Crash on play (WP8)

Topics: Windows Phone 8
Dec 14, 2012 at 8:36 AM

Hi, I have a problem implementing this library on WP8. I'm simply doing :
player.Plugins.Add(new AdaptivePlugin());
player.Source = new Uri(" buck bunny.ism/manifest");

And I got an Unhandled Exception System.NullReferenceException in Microsoft.PlayerFramework.Adaptive.DLL.
Have you got an idea to help me solve this problem ?

Thank you in advance.

Dec 14, 2012 at 5:21 PM

Hello, .Play cannot be called until the smooth streaming media element has done some work processing the source. I'd recommend using AutoPlay (true by default) to control playback instead. If you want to set AutoPlay = false and call .Play manually, wait until the MediaOpened event fires.

Dec 15, 2012 at 12:15 PM

Thanks a lot tim, it works.