morega
9 years agoVisitor
HTTPS image url in Poster node
I'm using the sample code provided by Roku SDK.
In the scene graph xml, I have the following Poster node declared
then in the br initialization code I tried to set the ca cert bundle for any https image urls. However, my https images do not show up consistently, but http images show up fine. Sometimes when I launch the app, no HTTPS images load, and then I relaunch the app, the same images might occur. This seems to happen randomly with the same code ...
Any ideas?
Thanks!
In the scene graph xml, I have the following Poster node declared
<Poster id="cover" loadDisplayMode="scaleToZoom"/>
then in the br initialization code I tried to set the ca cert bundle for any https image urls. However, my https images do not show up consistently, but http images show up fine. Sometimes when I launch the app, no HTTPS images load, and then I relaunch the app, the same images might occur. This seems to happen randomly with the same code ...
function Init()
m.cover = m.top.findNode("cover")
m.cover.SetCertificatesFile("common:/certs/ca-bundle.crt")
m.cover.AddHeader("developer ID", "")
m.cover.InitClientCertificates()
m.isLandScapeMode = true
m.itemInfo = m.top.findNode("itemInfo")
m.title = m.top.findNode("title")
m.description = m.top.findNode("description")
m.itemDetails = m.top.findNode("itemDetails")
m.backgroundPoster = m.top.findNode("backgroundPoster")
m.cover.observeField("loadStatus", "OnCoverLoadStatusChanged")
end function
Any ideas?
Thanks!