This project has moved and is read-only. For the latest updates, please go here.

mediaplayer plugin causes exception

Feb 27, 2014 at 4:31 AM
Hi henric ,
             i am trying to include the mediaplayer plugin with MPPF  (windows phone 8) , when i run the app i see some exception  below is the stack trace 
source :Autofac
Message:Value cannot be null.
Parameter name: instance

at Autofac.RegistrationExtensions.RegisterInstance[T](ContainerBuilder builder, T instance)
at SM.Media.Builder.BuilderBase.RegisterSingleton[TService](TService instance)
at SM.Media.TsMediaManagerBuilder..ctor(IHttpClients httpClients)
at SM.Media.MediaStreamFascade.CreateBuilder(IHttpClients httpClients)
at SM.Media.MediaStreamFascade..ctor(IHttpClients httpClients, Func2 setSourceAsync)
at SM.Media.DefaultMediaStreamFascadeParameters.<.cctor>b__0(IHttpClients httpClients, Func
2 mediaStreamSourceSetter)
at SM.Media.DefaultMediaStreamFascadeParameters.Create(MediaStreamFascadeParameters parameters, IHttpClients httpClients, Func2 mediaStreamSourceSetter)
at SM.Media.MediaPlayer.StreamingMediaPlugin.<get_MediaElement>b__0(Func
2 setSource)
at SM.Media.MediaPlayer.MediaElementWrapper..ctor(Func`2 mediaStreamFascadeFactory)
at SM.Media.MediaPlayer.StreamingMediaPlugin.get_MediaElement()
at Microsoft.PlayerFramework.MediaPlayer.GetTemplateChildren()
at Microsoft.PlayerFramework.MediaPlayer.<OnApplyTemplate>d__1.MoveNext()
Feb 27, 2014 at 7:44 AM
Edited Feb 27, 2014 at 7:46 AM
Are you using code from before ce9995d0a868 (February 22)?

I don't recall when I pushed the change that broke the Player Framework plugin to CodePlex, but the actual commit that broke it was made on February 9th (21f7dc55e5cb). My best guess is that it was in the 36 changeset push made on February 17th.

I had only done a basic smoke test and, in retrospect, I suspect I managed to do the testing from a copy of the tree without the changes
Feb 27, 2014 at 1:46 PM
yes i am using the code before feb 22.
Feb 28, 2014 at 10:58 AM
Does the fix in ce9995d0a868 solve the problem for you?
Feb 28, 2014 at 11:04 AM
let me try and update you, appreciate the help.