ShahjadAnsSunny
Reel Rookie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2020
06:26 AM
Widevide customdata (Encoded key) header issue
HI there ,
I am implementing widevine in my roku player node , here i am passing the following things:
licenceServer url, keySystem: "widevine"and stream url in dash format and 64 bit encoded key (key need to pass in header).
here is my following code for implementation:
code:
vidContent = CreateObject("RoSGNode", "ContentNode")
drmParams = {
keySystem: "widevine"
}
vidContent.streamformat = "dash"
vidContent.drmParams = drmParams
httpAgent = CreateObject("roHttpAgent")
httpAgent.SetCertificatesFile("common:/certs/ca-bundle.crt")
httpAgent.InitClientCertificates()
httpAgent.EnableCookies()
httpAgent.AddHeader("X-Roku-Reserved-Dev-Id", "")
httpAgent.AddHeader("customdata", "PD94bWwgdmVyc2lvbj0iMS.......") (64 bit encoded key passing)
m.video.drmHttpAgent=httpAgent
m.video.Live=true
m.video.enableUI = false
m.video.content = vidContent
m.video.setFocus(true)
m.video.control = "play"
but this code is not working for my player as i am gone through the roku doc.
can anyone clear me regarding it if i am in right direction or not , or it should be something else.
1 REPLY 1
shahjad
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2020
10:30 PM
Re: Widevide customdata (Encoded key) header issue
Hi All ,
If anyone know ,please help me out, i am still stuck on this thing, i am not seeing any clear doc for this.