function setVideo() as void
m.video = m.top.findNode("musicvideos")
m.video.observeField("state", "stateChanged")
httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
videoContent = createObject("RoSGNode", "ContentNode")
'THIS IS HTTPS m3u8
videoContent.url = m.top.item.StreamUrl
'below WORKS
'videoContent.url = "https://bitmovin-a.akamaihd.net/content/playhouse-vr/m3u8s/105560.m3u8"
videoContent.title = m.top.item.Title
videoContent.streamformat = "hls"
videoContent.SwitchingStrategy = "full-adaptation"
subtitle_config = {
TrackName: "eia608/1"
}
videoContent.SubtitleConfig = subtitle_config
videoContent.HttpSendClientCertificates = true
videoContent.HttpCertificatesFile = getCertFilename()
headers = []
headers.push("x-roku-reserved-dev-id:")
videoContent.HttpHeaders = headers
m.video.content = videoContent
m.video.control = "play"
end function
videoContent.HttpSendClientCertificates = true
videoContent.HttpCertificatesFile = "pkg:/certs/lab/gd_bundle-g2-g1.crt"
httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
m.video.content = videoContent
m.video.control = "play"
"rholicopp" wrote:
Bump, we are really in need of assistance from a Roku contact. Thanks
A similar question has come up before (https://forums.roku.com/viewtopic.php?t=93082) and we are just getting ignored.
I have found the way the docs specify how to do it, but they DO not work, this is a serious issue!
To be clear, the issue is, this snippet is NOT sending certificate authorization to the server (tested on roku os 7.5 and 7.6 beta)
videoContent.HttpSendClientCertificates = true
videoContent.HttpCertificatesFile = "pkg:/certs/lab/gd_bundle-g2-g1.crt"
httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
m.video.content = videoContent
m.video.control = "play"
httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
"belltown" wrote:"rholicopp" wrote:
Bump, we are really in need of assistance from a Roku contact. Thanks
A similar question has come up before (https://forums.roku.com/viewtopic.php?t=93082) and we are just getting ignored.
I have found the way the docs specify how to do it, but they DO not work, this is a serious issue!
To be clear, the issue is, this snippet is NOT sending certificate authorization to the server (tested on roku os 7.5 and 7.6 beta)
videoContent.HttpSendClientCertificates = true
videoContent.HttpCertificatesFile = "pkg:/certs/lab/gd_bundle-g2-g1.crt"
httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
m.video.content = videoContent
m.video.control = "play"
I don't see why you're creating a brand new roHttpAgent object, then assigning it to your Video node. I don't think you need to do that. The Video node creates its own roHttpAgent. All you should need to do is set the relevant HTTPS content meta-data attributes.
Try removing these lines:httpAgent = CreateObject("roHttpAgent")
m.video.setHttpAgent(httpAgent)
If it doesn't work then most likely it's because of what you have in your certificates file.
m.httpAgent = CreateObject("roHttpAgent")
m.httpAgent.SetCertificatesFile ("common:/certs/ca-bundle.crt")
m.httpAgent.EnableCookies()
m.videoPlayer.setHttpAgent(m.httpAgent)
content = createObject("RoSGNode","ContentNode")
content.streamFormat = "hls"
content.title = title
content.description = description
content.url = url
content.HttpSendClientCertificates = true
content.HttpCertificatesFile = "common:/certs/ca-bundle.crt"
m.videoPlayer.content = content
m.videoPlayer.EnableCookies()
m.videoPlayer.SetCertificatesFile("common:/certs/ca-bundle.crt")
m.videoPlayer.InitClientCertificates()
m.videoPlayer.control = "play"