Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS videos from HTTPS sources don't play #6

Open
belltown opened this issue Aug 25, 2014 · 0 comments
Open

HLS videos from HTTPS sources don't play #6

belltown opened this issue Aug 25, 2014 · 0 comments

Comments

@belltown
Copy link

Problem:
Even with the fixes i suggested in Issue #5 , live (hls) videos won't play when served from an https source.

Reason:
Roku does not appear to handle hls https streams correctly in roVideoScreen even if SetCertificatesFile and InitClientCertificates are called.

Solution:
This "kludge" seems to do the trick:
In video.brs in the getMP4Url function, insert the following code after video.SwitchingStrategy = "minimum-adaptation":

if Left(urlDecoded, 8) = "https://"
    urlDecoded = "http://" + Right(urlDecoded, Len(urlDecoded) - 8)
endif

Unrelated, but I also spotted another problem in the getMP4Url function:
After:

hlsUrl = CreateObject("roRegex", "hlsvp=([^(" + Chr(34) + "|&|$)]*)", "").Match(htmlString)

the line:

if (urlEncodedFmtStreamMap.Count() > 1) then

should read:

if (hlsUrl.Count() > 1) then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant