
24i
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2017
06:19 AM
(Smooth) PlayReady implementation
Hi all,
For a customer we have to implement PlayReady DRM on their Smooth streams, but for some reason I cannot get it to work. The customer themselves have it working through web, Android and iOS using the following url:
And I'm not sure how this should be implemented on Roku. I tried the following:
and a base64 encoded version:
I also tried to add the params to an AssociativeArray and base64 encode it by doing "bytearray.FromAsciiString(FormatJSON(assocarray))"
But so far no luck....
The only message we get from the player is:
LOG - VideoView - ERROR - Code -3, Message: An unexpected problem (but not server timeout or HTTP error) has been detected.
Which is not really helpful... Is there any way to get more debug info from the player?
Anyone can help me out?
For a customer we have to implement PlayReady DRM on their Smooth streams, but for some reason I cannot get it to work. The customer themselves have it working through web, Android and iOS using the following url:
https://green.playready.entitlement.theplatform.eu/playready/rightsmanager.asmx?account=<account>&auth=<auth_token>&releasePid=<pid>&schema=1.0
And I'm not sure how this should be implemented on Roku. I tried the following:
videoContent.encodingType = "PlayReadyLicenseAcquisitionAndChallenge"
videoContent.encodingKey = "https://green.playready.entitlement.theplatform.eu/playready/rightsmanager.asmx" + "%%%"
videoContent.encodingKey += "account=" + getConfig().data.appconfig.api.mpx_config.account_id
videoContent.encodingKey += "&auth=" + getConfig().data.appconfig.api.mpx_token
videoContent.encodingKey += "&releasePid=" + pid
videoContent.encodingKey += "&scheme=1.0"
and a base64 encoded version:
testString = "account=" + getConfig().data.appconfig.api.mpx_config.account_id
testString += "&auth=" + getConfig().data.appconfig.api.mpx_token
testString += "&releasePid=" + pid
testString += "&scheme=1.0"
bytearray = CreateObject("roByteArray")
bytearray.FromAsciiString(testString)
encodedString = bytearray.ToBase64String()
videoContent.encodingType = "PlayReadyLicenseAcquisitionAndChallenge"
videoContent.encodingKey = "https://green.playready.entitlement.theplatform.eu/playready/rightsmanager.asmx" + "%%%" + encodedString
I also tried to add the params to an AssociativeArray and base64 encode it by doing "bytearray.FromAsciiString(FormatJSON(assocarray))"
But so far no luck....
The only message we get from the player is:
LOG - VideoView - ERROR - Code -3, Message: An unexpected problem (but not server timeout or HTTP error) has been detected.
Which is not really helpful... Is there any way to get more debug info from the player?
Anyone can help me out?
2 REPLIES 2
arielsfr
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2018
10:23 AM
Re: (Smooth) PlayReady implementation
Have you had any success with this? Between the docs and my experimentation, it seems that you have to provide the LA_URL and challenge data (ie, play token), not the request to obtain a token. The solution I'm working on is to have the channel make an API request to my site (or whatever backend), which returns the LA_URL and token. These are entered in the encoding key. Hope that helps and makes sense.
jasonjustman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019
07:56 AM
Re: (Smooth) PlayReady implementation
24i friends:
Please see my post here regarding CENC defaultIV size:
https://forums.roku.com/viewtopic.php?f=34&t=116388&p=649340#p649340
Please see my post here regarding CENC defaultIV size:
https://forums.roku.com/viewtopic.php?f=34&t=116388&p=649340#p649340