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

Support for HLS Video (Twitch, Crunchyroll, Youtube Live, Twitter, and more) #831

merged 1 commit into from Jan 11, 2019


None yet
2 participants
Copy link

netpro2k commented Jan 11, 2019

Playing video from sites using HLS is now supported. This includes live streaming sites like Twitch and Youtube Live, as well as VOD streaming video sources like Crunchyroll and Twitter.


When the source is a live stream seek controls will be hidden and video syncing will be disabled (since the stream syncs itself). When native HLS support is available it will only be used if hls.js itself is not supported (due to media extensions not being supported) since it is still a useful interface for event and error handling.

Biggest hack is to do with proxying of relative urls. Since HLS.js internally tries to resolve the relative urls against the proxied url, we have to unpack the proxied url, and the resolve it against the original base url ourself. This would be more cleanly done by extending hls.js to expose its url resolving in an overridable way.

@netpro2k netpro2k added the whats new label Jan 11, 2019

@johnshaughnessy johnshaughnessy self-assigned this Jan 11, 2019

@netpro2k netpro2k merged commit a48e765 into master Jan 11, 2019

2 checks passed

buildsize No prior size to compare - 36.4 MB
ci/circleci: build Your tests passed on CircleCI!

@mozilla mozilla deleted a comment Jan 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment