Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for HLS Video (Twitch, Crunchyroll, Youtube Live, Twitter, and more) #831
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.