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: 
pmpascua
Level 7

Struggling in playing PlayReady content

Hello, I'm having problems getting a PlayReady content to work on a Roku device. I am using the Scene Graph's Video component to play any content over the url and so far have successfully play those kind of contents but when playing the playready content in addition to adding a license url, it is always stuck at 33% buffering and would error out. There's no docs regarding the error code it gives me so I wouldn't be able to look it up. I set up the code like this
videoContent = CreateObject("RoSGNode", "ContentNode")
videoContent.url = url
videoContent.streamFormat = streamFormat
videoContent.encodingtype = "PlayReadyLicenseAcquisitionURL"
videoContent.encodingkey = licenseUrl
m.player.content = videoContent
m.player.control = "play"


I had an HLS and Smoothstream content. Both doesn't work. The HLS one gives me an error code of -5 and 'malformed data' error message while the Smoothstream gives me an error code of 0, without an error message. Had tried changing the encodingtype to "PlayReadyLicenseAcquisitionAndChallenge" and still doesn't work. Compared to other platform like iOS and Android, the same content is playable on their end. Any advice? 

The sample content are below

HLS content (Doc said that HLS + Playready) isn't supported sadly)
url = http://cdn-origin94-dit1-ocd-vod.quickplay.com/vod/product/testlib/ingested/Elephants_Dream/master_2.m3u8
licenseUrl = http://qpis1.cloudapp.net:13600/prp/getlicense?service=orts&version=1.0&kid=C6ECC49F-DFF4-4C78-9163-8038AE824CEC&ptoken=eyJjb250ZW50SWQiOiI5OTkiLCJsaWNlbnNlRXhwaXJ5VGltZSI6MTQ3MDQxNDg1OTc4OCwiZW50aXRsZWRDb250ZW50SWRzIjoiIiwibWF4VXNlcyI6MSwic2lnbmF0dXJlIjoiOGI0Yzk2OWQyMWM1YTFlOTVlYWNmMmY2MGM4NzEzZDkxMTJiZTEwY2YxOTA5YmU0OTZjMGUyMGQzZjJlNjkxNyIsInVuaXF1ZUlkIjoiMzU1NDk5MDYwNzg3MjI4IiwiaXNzdWVyIjoiUHJpbmNlUGhpbGxpcCIsImFwaUtleSI6ImFwaUtleSIsImtleVZlcnNpb24iOiJ2ZXJzaW9uMDMtYSIsImdlbmVyYXRvclZhbGlkYXRvckRhdGEiOiJnZW5lcmF0b3JWYWxpZGF0b3JEYXRhIiwiZXhwaXJ5VGltZSI6MTQ3MDQxNDg1OTc4OCwiY3JlYXRlZFRpbWUiOjE0NjQzNjY4NjA2NjgsInRva2VuTW9kZWxWZXJzaW9uIjoiVjIiLCJ2ZXJzaW9uZWRTaWduYXR1cmUiOiI4MjRmMjRmNzAwOWNkNzMzYmMxMGJjNWJjNzQ2NWY3Yjk2NWUzNmNjNzE0MjkwMmZkZjVkY2YyNGMzZDJkYTEwIn0=&b=616374696f6e3d3630327c7c6369643d6369643a2343364543433439462d444646342d344337382d393136332d38303338414538323443454340746573742e646f6d61696e

SmoothStream
url = http://cdn-origin94-dit1-ocd-vod.quickplay.com/vod/product/testlib/ingested/Elephants_Dream/msssTVXWifiSD.ism/manifest
licenseUrl = http://qpis1.cloudapp.net:13600/prp/getlicense?service=orts&version=1.0&kid=2BCC6FF6-2EE0-455F-90E3-F209C13FBAD2&ptoken=eyJjb250ZW50SWQiOiI5OTkiLCJsaWNlbnNlRXhwaXJ5VGltZSI6MTQ2OTAzODI2Nzc4NywiZW50aXRsZWRDb250ZW50SWRzIjoiUVVKRFJFWXpNRGt0UTBKQ1FpMDBOa1pETFVKRU1rTXRRME14TkRCQk1rWTFNakUzLE5VVXpOa1l6TURrdFEwSkNRaTAwTmtaRExVSkVNa010UTBNeE5EQkJNa1kxTWpFMyIsIm1heFVzZXMiOjEsInNpZ25hdHVyZSI6Ijk3Y2M5ZGU1NDc0ZmMwNDcxMDJlZGIxNjQ5YWE2NmFmYmZhODNkMmU1NmQzYjFiN2ZjN2ZlYTNjYTc3MTkyMTYiLCJ1bmlxdWVJZCI6IjM1NTQ5OTA2MDc4NzIyOCIsImlzc3VlciI6IlByaW5jZVBoaWxsaXAiLCJhcGlLZXkiOiJhcGlLZXkiLCJrZXlWZXJzaW9uIjoidmVyc2lvbjAzLWEiLCJnZW5lcmF0b3JWYWxpZGF0b3JEYXRhIjoiZ2VuZXJhdG9yVmFsaWRhdG9yRGF0YSIsImV4cGlyeVRpbWUiOjE0NjkwMzgyNjc3ODcsImNyZWF0ZWRUaW1lIjoxNDYyOTkwMjY4NTE1LCJ0b2tlbk1vZGVsVmVyc2lvbiI6IlYyIiwidmVyc2lvbmVkU2lnbmF0dXJlIjoiYTE4NjA2ZDY1YzU4ZDI1Nzg0M2IzODdlOGRhNWJhNGYwY2YwZTdlODQ1OGEzMWNjMzM2YTQwYTNkNTU5NjI4MiJ9&b=616374696f6e3d3630327c7c6369643d6369643a2343364543433439462d444646342d344337382d393136332d38303338414538323443454340746573742e646f6d61696e
0 Kudos
2 Replies
pmpascua
Level 7

Re: Struggling in playing PlayReady content

The licenseUrl themselves requires a POST request to be made instead of a GET request. hopefully Roku does the POST request
0 Kudos
pmpascua
Level 7

Re: Struggling in playing PlayReady content

Bump!
0 Kudos