Your Digital Media Has Never Looked So Good

 
dratio
Topic Author
Posts: 17
Joined: Thu Sep 11, 2014 11:29 am

Custom challenge data in a PlayReady license acquisition req

Thu Feb 05, 2015 10:06 am

I need to include custom challenge data in a PlayReady license acquisition request for smooth streaming and I am not sure how to go about doing such. Is there a way to do so?
 
User avatar
RokuKevin
Roku Engineering
Posts: 796
Joined: Tue Sep 22, 2009 2:29 pm

Re: Custom challenge data in a PlayReady license acquisition

Thu Feb 05, 2015 4:02 pm

Use the encodingtype="PlayReadyLicenseAcquistionAndChallenge" content metadata parameter and the encodingKey parameter where '%%%' is the sentinel in the value separating the license acquisition url from the custom challenge data. Example:

videoclip.encodingtype = "PlayReadyLicenseAcquisitionAndChallenge"
videoclip.encodingKey = "https://www.licenseaquistionurl.asmx" + "%%%" + "YourCustomDataHere"

--Kevin
 
marcio
Posts: 1
Joined: Mon Mar 02, 2015 11:01 am

Re: Custom challenge data in a PlayReady license acquisition

Tue Mar 03, 2015 2:42 am

Kevin, could you please clarify me on this:

Where do I add the encodingtype and encodingKey properties?

like this:
player = CreateObject("roVideoPlayer")
player.SetContentList([{
        Stream: {
            url: "http://play.ready/url.ism/Manifest"
        },
        StreamFormat: "ism"
        SwitchingStrategy: "full-adaptation",
        encodingtype: "PlayReadyLicenseAcquisitionAndChallenge",
        encodingKey: "https://www.licenseaquistionurl.asmx" + "%%%" + "YourCustomDataHere"
}])


or like this:
player = CreateObject("roVideoPlayer")
player.SetContentList([{
        Stream: {
            url: "http://play.ready/url.ism/Manifest",
            encodingtype: "PlayReadyLicenseAcquisitionAndChallenge",
            encodingKey: "https://www.licenseaquistionurl.asmx" + "%%%" + "YourCustomDataHere"
        },
        StreamFormat: "ism"
        SwitchingStrategy: "full-adaptation"
}])


or is it some other way? I can't find it in the rokudev documentation..

Also, If I just want to use encodingKey= "https://www.licenseaquistionurl.asmx" without custom data, is it possible to implement? does the encodingtype property still maintain as "PlayReadyLicenseAcquisitionAndChallenge"?

Thank you for your attention.
Márcio.
 
User avatar
bbrouse
Posts: 78
Joined: Mon Apr 11, 2011 10:48 am

Re: Custom challenge data in a PlayReady license acquisition

Thu Mar 05, 2015 11:43 am

Bumping this post because I'm also working on getting Playready streams to work on Roku. I would also like to know if the encodingtype and encodingkey are documented anywhere.
 
User avatar
PTKDev
Posts: 24
Joined: Thu Mar 05, 2015 3:40 am

Re: Custom challenge data in a PlayReady license acquisition

Fri May 22, 2015 2:46 am

I not want overwrite the url of acquire license, but get it from manifest. Is possibile?
Or is possibile write %%% + cutomData without url?
Regards,
Patryk Rzucidlo (PTKDev)

Find me on social, forum and app with nickname "PTKDev".
Portfolio: http://www.ptkdev.it
Skype: ptkdev | Twitter: @ptkdev | LinkedIN: ptkdev | CurriculumVitae: http://cv.ptkdev.it

Who is online

Users browsing this forum: No registered users and 6 guests