我们正在实现一个视频Roku频道,在这一点上,我们希望使用Widevine DRM与短划线流URL来播放视频。我遵循了Roku开发论坛提供的文档,但它不起作用。
我当前的代码是:
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"我参考了下面的链接来找出方法。https://sdkdocs.roku.com/display/sdkdoc/Content+Protection#ContentProtection-Widevine-BETA https://sdkdocs.roku.com/display/sdkdoc/Content+Meta-Data#ContentMeta-Data-ExampleofconfiguringadashstreamwithWidevineDRM
如果我遗漏了什么,请让我知道,并帮助我解决这个问题。
发布于 2021-01-22 16:19:30
您是否已将此添加到您的通道清单中?
requires_widevine_drm=1
requires_widevine_version=1.0此外,在创建视频节点时,根据https://developer.roku.com/en-gb/docs/references/brightscript/components/rourltransfer.md
为了让您的web服务器执行上述步骤来验证您的Roku Streaming播放器,您的应用程序需要在执行任何https请求之前调用以下函数:
在您的代码中,它将是:
HttpAgent.SetCertificatesFile("common:/certs/ca-bundle.crt")
HttpAgent.InitClientCertificates()
HttpAgent.AddHeader("X-Roku-Reserved-Dev-Id", "")https://stackoverflow.com/questions/52204949
复制相似问题