
dreamer2057
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2016
09:06 AM
Https Stream (Video tag) in new Graph API
How to play HLS through SSL.
I need something like this:
but for Video XML Element:
and
edskitter asked (http://forums.roku.com/viewtopic.php?f=34&t=88621&p=508707&hilit=SetCertificatesFile+video#p508707) this question, but nobody didn't answer on it:
I need something like this:
http.SetCertificatesFile("pkg:/source/cafile.pem")
http.InitClientCertificates()
but for Video XML Element:
<Video
id="videoPlayerObject"
width="1280"
height="720"
translation="[0,0]"
/>
and
videoContent = createObject("RoSGNode", "ContentNode")
videoContent.url = streamObject.URL
videoContent.title = streamObject.Title
videoContent.streamformat = "hls"
videoObj = m.top.FindNode("videoPlayerObject")
videoObj.content = videoContent
videoObj.control = "play"
edskitter asked (http://forums.roku.com/viewtopic.php?f=34&t=88621&p=508707&hilit=SetCertificatesFile+video#p508707) this question, but nobody didn't answer on it:
"edskitter" wrote:
Concerning video, what are Roku's plan for securing video?
In previous version, I was using :
videoContent.Addheader("reserved-id", "xxxx.."
videoContent.SetCertificatesFile("pkg:/certs/xx.crt")
videoContent.InitClientCertificates()
How can we achieve this with the new API?
Sincerely, Sergey Shoshin, software developer.
3 REPLIES 3

dreamer2057
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2016
07:16 PM
Re: Https Stream (Video tag) in new Graph API
Nobody didn't play streams with certificates in new Graph API? Need a help, guys...
Sincerely, Sergey Shoshin, software developer.

dreamer2057
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2016
06:55 PM
Re: Https Stream (Video tag) in new Graph API
It is not only my question..
edskitter asked it too:
And of course it is very difficult to answer this question...
http://forums.roku.com/viewtopic.php?f=34&t=88621&start=75
edskitter asked it too:
"edskitter" wrote:
Concerning video, what are Roku's plan for securing video?
In previous version, I was using :
videoContent.Addheader("reserved-id", "xxxx.."
videoContent.SetCertificatesFile("pkg:/certs/xx.crt")
videoContent.InitClientCertificates()
How can we achieve this with the new API?
And of course it is very difficult to answer this question...
http://forums.roku.com/viewtopic.php?f=34&t=88621&start=75
Sincerely, Sergey Shoshin, software developer.
kmikz
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017
04:51 AM
Re: Https Stream (Video tag) in new Graph API
What worked for me was
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"