Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dratio
Visitor

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 4
RokuKevin
Visitor

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
Visitor

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
Visitor

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
Visitor

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.