Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
dratio
Level 7

Custom challenge data in a PlayReady license acquisition req

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?
0 Kudos
4 Replies
Highlighted
RokuKevin
Level 7

Re: Custom challenge data in a PlayReady license acquisition

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
0 Kudos
marcio
Level 7

Re: Custom challenge data in a PlayReady license acquisition

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.
0 Kudos
bbrouse
Level 7

Re: Custom challenge data in a PlayReady license acquisition

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.
0 Kudos
PTKDev
Level 7

Re: Custom challenge data in a PlayReady license acquisition

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
0 Kudos