vishalpatil
7 years agoVisitor
Can not play video using Widevine DRM with DASH Streaming URL
Hi All,
We are implementing one video Roku channel and in that, we want to use the Widevine DRM with DASH Streaming URL to play the video.
I followed the documentation given by Roku development forum but it is not working.
My current code is:
videoContent = createObject("roSGNode", "ContentNode")
videoContent.StreamFormat = "dash"
videoContent.Url = 'provided dash streaming url
' for widevide DRM
drmParams = {
keySystem: "Widevine",
licenseServerURL: 'provided our licenseServerURL
}
videoContent.drmParams = drmParams
HttpAgent = CreateObject("roHttpAgent")
HttpAgent.AddHeader("Authorization",AuthorizationTokenString)
m.VideoPlayer.setHttpAgent(HttpAgent)
m.VideoPlayer.content = videoContent
m.VideoPlayer.control = "play"
I referred the following link to find out the way.
https://sdkdocs.roku.com/display/sdkdoc ... evine-BETA
https://sdkdocs.roku.com/display/sdkdoc ... idevineDRM
Please let me know if I am missing something here and help me out solving this issue.
We are implementing one video Roku channel and in that, we want to use the Widevine DRM with DASH Streaming URL to play the video.
I followed the documentation given by Roku development forum but it is not working.
My current code is:
videoContent = createObject("roSGNode", "ContentNode")
videoContent.StreamFormat = "dash"
videoContent.Url = 'provided dash streaming url
' for widevide DRM
drmParams = {
keySystem: "Widevine",
licenseServerURL: 'provided our licenseServerURL
}
videoContent.drmParams = drmParams
HttpAgent = CreateObject("roHttpAgent")
HttpAgent.AddHeader("Authorization",AuthorizationTokenString)
m.VideoPlayer.setHttpAgent(HttpAgent)
m.VideoPlayer.content = videoContent
m.VideoPlayer.control = "play"
I referred the following link to find out the way.
https://sdkdocs.roku.com/display/sdkdoc ... evine-BETA
https://sdkdocs.roku.com/display/sdkdoc ... idevineDRM
Please let me know if I am missing something here and help me out solving this issue.