Workaround for errors with adaptive streaming.

Topics: Windows 8 Xaml
Nov 18, 2014 at 3:07 PM
Hi
We have lately had different problems with adaptive streaming.
E.g.
After calling AdaptiveSourceManager.GetDefault(); we got this error:
Requested Windows Runtime type 'Microsoft.Media.AdaptiveStreaming.AdaptiveSourceManager' is not registered.":"Microsoft.Media.AdaptiveStreaming.AdaptiveSourceManager"}

And other developers got other errors when trying to play adaptive streams.

For us it's now works after we modify the content of Package.appxmanifest with the following:
After the </Applications> element:

<Extensions>
<Extension Category="windows.activatableClass.inProcessServer">
  <InProcessServer>
    <Path>Microsoft.Media.AdaptiveStreaming.dll</Path>
    <ActivatableClass ActivatableClassId="Microsoft.Media.AdaptiveStreaming.AdaptiveSourceManager" ThreadingModel="both" />
  </InProcessServer>
</Extension>
</Extensions>
Nov 25, 2014 at 12:35 PM
Thank you very much, it's been very useful.

It has been working for a few months and "suddenly" it stopped working.

I say "suddenly" because I'm working on different projects with different versions of PlayerFramework (silverlight web and oob, WP8 and Win 8.1)
and as soon as I reinstalled packages for working with the old Silverlight 5, the Windows Store App started giving me this problem.

I suspect that there's a connection, but couldn't find a solution for a few hours, until now, so thanks a lot.
Dec 3, 2014 at 6:37 AM
This is also working for me. My windows 8 store app stopped working with a OutOfMemory Exception on all of my machines. It also falls within the timeframe of the VS2013 Update 4.

Thank you!
Mar 25, 2015 at 12:26 PM
Thanks,

This fix worked perfectly for me!