synctv
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010
01:10 PM
HLS via HTTPS
Hi,
In my tests it seems that HLS on HTTPS servers is not working, or I'm doing something wrong. When using roUrlTransfer, we use SetCertificatesFile() to set the cert. However, when using roVideoScreen.SetContentView(), the associative array that is passed in uses a parameter StreamUrls, which is an array of Strings. I pass the proper .m3u8 URL into there (an https://... url), however I get a -5 error:
videoScreenEvent: -5
request failed: The format is not supported or the media is corrupt.
The same code works fine if I use regular http URLs. The .m3u8 and the associated encoded segments are fine as I've tested them with the roku on a regular http server.
I'm using v2.7 build 857.
Please advise, thank you,
SyncTV
In my tests it seems that HLS on HTTPS servers is not working, or I'm doing something wrong. When using roUrlTransfer, we use SetCertificatesFile() to set the cert. However, when using roVideoScreen.SetContentView(), the associative array that is passed in uses a parameter StreamUrls, which is an array of Strings. I pass the proper .m3u8 URL into there (an https://... url), however I get a -5 error:
videoScreenEvent: -5
request failed: The format is not supported or the media is corrupt.
The same code works fine if I use regular http URLs. The .m3u8 and the associated encoded segments are fine as I've tested them with the roku on a regular http server.
I'm using v2.7 build 857.
Please advise, thank you,
SyncTV
2 REPLIES 2

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010
01:22 PM
Re: HLS via HTTPS
Are you using SetCertificatesFile on the roVideoScreen? If you need that for the roUrlTransfer, I'd imagine you'd need the same for the roVideoScreen. It implements the same ifHttpAgent interface, so the code should be pretty much identical.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
mike_ryan
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2010
01:50 PM
Re: HLS via HTTPS
Ay make sure you're setting a certificate file
We do it like so:
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetContent(vid)
screen.SetCertificatesFile("pkg:/source/certs/mycert.pem")
screen.AddHeader("x-roku-reserved-dev-id","ANYTHING")
Note we're not actually using HTTPS on the stream itself we're actually using it for protecting an AES key but the code should carry over.
We do it like so:
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetContent(vid)
screen.SetCertificatesFile("pkg:/source/certs/mycert.pem")
screen.AddHeader("x-roku-reserved-dev-id","ANYTHING")
Note we're not actually using HTTPS on the stream itself we're actually using it for protecting an AES key but the code should carry over.