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: 
jasonwright
Visitor

Access to Widevine license request

Is it possible to access the request body of a Widevine license request?

Sample code:

m.videoPlayer = CreateObject("roSGNode", "Video")
m.videoPlayer.id="videoPlayer"
m.videoPlayer.translation="[0, 0]"
m.videoPlayer.width="1280"
m.videoPlayer.height="720"

drmParams = {
keySystem: "Widevine"
licenseServerURL: "<license server url>"
}

contentNode = createObject("roSGNode", "contentNode")
contentNode.streamFormat = "dash"
contentNode.url = "<content url>"
contentNode.drmParams = drmParams

m.video.content = contentNode
m.top.AppendChild(m.videoPlayer)
m.videoPlayer.visible = true
m.videoPlayer.setFocus(true)
m.videoPlayer.control = "play"
m.videoPlayer.observeField("state", "OnVideoPlayerStateChange")
m.videoPlayer.observeField("visible", "onVideoVisibleChange")

Our current implementation of Widevine requires access to the request body.
I know that it is possible to add headers etc but can't see anywhere in the docs if it is possible to access/modify the request detail itself.
0 Kudos
1 REPLY 1
AmanPunj
Binge Watcher

Re: Access to Widevine license request

Hi @jasonwright, got any solution of how to add body in Drm license url request ?? 

0 Kudos