playready smooth streaming sample

Topics: Windows 8 Xaml
Jun 22, 2012 at 4:09 PM

Hi guys

I couldnt find any information about how to play a drm protected smooth streaming stream.

This thing is clearly not working for it despite all my modifications and effort to make it work:

http://code.msdn.microsoft.com/windowsapps/Simple-PlayReady-sample-5c1aefaf#content

In sl we just have to override the licenseacquirer url and everything worked, now i need a sample how to use the MediaProtectionManager with smooth streaming.

Thanks

Gabriel

Coordinator
Jun 22, 2012 at 4:35 PM

Hi Gabriel, to confirm: does the PlayReady sample on MSDN work for you but the problem is trying to modify it to work with Smooth Streaming?

Jun 22, 2012 at 4:46 PM

Its not working for me out of the box which is not really a problem because its for playing some wmv files and not smooth streaming. What i want is some sort of code that replaces the Silverlight version's urloverride method and acquires the license for the drm protected smooth stream.

Coordinator
Jun 22, 2012 at 6:59 PM

fyi: here are some tips for getting PlayReady to work that might be helpful...

http://playerframework.codeplex.com/discussions/359145

Jun 25, 2012 at 4:12 PM

Its not helping but thanks, of course i browsed through the whole forum before i posted my request for a new smooth streaming drm playback sample.

What i looking for really is something which can play this on win8:

La Url: http://playready.directtaps.net/pr/svc/rightsmanager.asmx?PlayRight=1&UseSimpleNonPersistentLicense=1

Manifest url: http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest

they are from here: http://playready.directtaps.net/pr/doc/slee/

Jul 2, 2012 at 4:21 PM

Any news on this?

Jul 4, 2012 at 1:57 PM

I have PlayReady DRM with Smooth Streaming working. 

You'll need the Smooth Streaming plugin.

http://learn.iis.net/page.aspx/1279/smooth-streaming-client-sdk-beta-1-for-metro-style-apps-release-notes/

<mmppf:MediaPlayer x:Name="mediaPlayer" HorizontalAlignment="Left">

  <mmppf:MediaPlayer.Plugins>

    <adaptive:AdaptivePlugin />

  </mmppf:MediaPlayer.Plugins>
</mmppf:MediaPlayer>

You'll need to create a MediaProtectionManager. If you need custom authorization you have to handle the ServiceRequested event and add your logic there.

Once you have received a successful license request, set your mediaPlayer to play your content (i.e. in the MediaOpened event handler).

Jul 4, 2012 at 2:17 PM
Edited Jul 4, 2012 at 2:18 PM

"You'll need to create a MediaProtectionManager" Thats right, but how can i set the url override and all the other things for this.

I simply didnt found the way to do that. The sample here is only good for wmvs:

http://code.msdn.microsoft.com/windowsapps/Simple-PlayReady-sample-5c1aefaf#content

Do you have a source? or did you managed to play this sample content?:

La Url: http://playready.directtaps.net/pr/svc/rightsmanager.asmx?PlayRight=1&UseSimpleNonPersistentLicense=1

Manifest url: http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest

If yes please include your sample.

Jul 4, 2012 at 4:55 PM

In the handler for the ServiceRequested event I manually created a HTTP post request to the authorization server and handled the response.

These will help:

PlayReadyLicenseAcquisitionServiceRequest.GenerateManualEnablingChallenge();

PlayReadyLicenseAcquisitionServiceRequest.ProcessManualEnablingResponse(data);

MediaProtectionServiceCompletion.Complete(bool);

Sep 9, 2012 at 5:49 PM

A few modification on Microsoft's PlayReady sample solved the problem.

http://gdwp7dev.wordpress.com/2012/09/09/playready-protected-smooth-streaming-playback-on-windows-8/

May 27, 2013 at 5:03 AM
@lorddg

I am also trying to implement PLayready with smooth streaming for the manifest url.

Can you please explain on how you solved the issue, I tried to go to the blog link you have posted but it is marked private by its owner.
May 28, 2013 at 4:05 AM
Edited May 28, 2013 at 4:06 AM
I found the solution to this, as lorddg said few modification to Microsofts Playready sample application solved the problem. Since the blog link provided is a private blog and since I dont have access to it I have posted the solution on stackoverflow,

Stackoverflow Link
May 28, 2013 at 10:16 AM
HI,
Sorry for the late reply, i had to take the blog off for a time (making it private was easier), but your solution is exactly the same as mine was. Nice answer at Stackoverflow, short and simple.