Your Digital Media Has Never Looked So Good

 
jasonwright
Topic Author
Posts: 4
Joined: Wed Aug 07, 2019 1:40 am

Access to Widevine license request

Wed Aug 07, 2019 2:02 am

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.

Who is online

Users browsing this forum: No registered users and 6 guests