1

I am trying my hands on Windows 8 Application development and was trying for Playready and Smooth streaming. There are sample applications available which explain on how to implement smooth streaming and playready individually.

But I am not able to find a way on how to implement smooth streaming and playready together. Is there any way to do it ?

4

1 回答 1

1

找到了方法,您需要对 Playready 提供的示例应用程序进行一些更改(在此处找到)

  1. 安装流畅的流媒体和可播放的 ADK。
  2. 在您的 playready 示例应用程序中添加平滑流式传输的参考,并将项目的平台目标更改为 x64。
  3. 修改 MEDIA 以使用一些清单 url,例如。:http : //playready.directtaps.net/smoothstreaming/TTLSS720VC1PR/To_The_Limit_720.ism/Manifest 并修改 LAURL 以使用有效的许可证 URL,例如: http://playready.directtaps.net/pr/svc/rightsmanager.asmx ? PlayRight=1&UseSimpleNonPersistentLicense=1

  4. 在 PPlayback.cs -> public void Play(MediaElement mediaElement, string strMediaPath) 添加以下行,

    extensions.RegisterByteStreamHandler("Microsoft.Media.AdaptiveStreaming.SmoothByteStreamHandler", ".ism", "text/xml");

    extensions.RegisterByteStreamHandler("Microsoft.Media.AdaptiveStreaming.SmoothByteStreamHandler", ".ism", "application/vnd.ms-sstr+xml");

它对我来说很好。

于 2013-05-28T01:54:23.740 回答