Forum Discussion

dratio's avatar
dratio
Visitor
11 years ago

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?

4 Replies

  • 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
  • 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.
  • 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.
  • I not want overwrite the url of acquire license, but get it from manifest. Is possibile?
    Or is possibile write %%% + cutomData without url?