This is a bookmarklet designed to make it easy to open a Twitch stream in HLS (see below for more information).
Requirements: a browser that supports HLS streams. Currently only Safari on OS X and iOS and this was designed for that.
You need to go here to get the bookmarklet.
Github doesn't allow javascript:
links.
When you're on a stream page (e.g. twitch.com/yourfavstreamer
), just click the bookmarklet and it will do the following:
- Pause the Flash-based stream
- Open popup with the HLS-based stream
The regular Twitch stream viewer uses Adobe Flash, which is a huge power hog. So when you're watching streams on a laptop, this isn't a good thing. HLS is short for HTTP Live Streaming and is a protocol that Apple came up with. Basically it's a way to stream video using native technologies that don't drain battery.
The JavaScript is within hls.js
and it needs to be converted to a bookmarklet-friendly version with the make_bookmarklet.pl
script:
cat hls.js | ./make_bookmarklet.pl
This copies the bookmarklet (javascript:...
) to your clipboard.
make_bookmarklet.pl
is included and is by John Gruber of Daring Fireball.
Licensed under the MIT License.
1/29/14
Initial release.
- My first blog post about this, "Watch Twitch Without Flash"
- Apple's documentation on HLS