rholicopp
9 years agoVisitor
Roku bug: Streaming hls to Video RSG component, cert authorization not sent
Hello,
I am trying to switch from using the roVideoScreen element to using an embedded Video element(RSG)
The https server i am streaming from needs certificate authorization to be sent up, but it is not being sent up when using the new Video element (https://sdkdocs.roku.com/display/sdkdoc/Video)
I am setting the certificate file and I believe i am setting everything needed for the Video element, however playback is failing
m.video.errorCode -3
An unexpected problem (but not server timeout or HTTP error) has been detected.
The same error happens when I use the roVideoScreen and don't call video.SetCertificatesFile(getCertFilename())
Does anyone have any ideas why the certificate authorization would not be sent to the server?
Is this a roku bug that anyone is aware of? Can I log this somewhere, so Roku can investigate?
I am trying to switch from using the roVideoScreen element to using an embedded Video element(RSG)
The https server i am streaming from needs certificate authorization to be sent up, but it is not being sent up when using the new Video element (https://sdkdocs.roku.com/display/sdkdoc/Video)
I am setting the certificate file and I believe i am setting everything needed for the Video element, however playback is failing
m.video.errorCode -3
An unexpected problem (but not server timeout or HTTP error) has been detected.
The same error happens when I use the roVideoScreen and don't call video.SetCertificatesFile(getCertFilename())
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
Does anyone have any ideas why the certificate authorization would not be sent to the server?
Is this a roku bug that anyone is aware of? Can I log this somewhere, so Roku can investigate?