Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

A bookmarklet to open the current Twitch stream in a HLS-based player in a new window

License

Notifications You must be signed in to change notification settings

robinadr/twitch-hls-bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch HLS Bookmarklet

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.

How to Install

You need to go here to get the bookmarklet.

Github doesn't allow javascript: links.

How to Use

When you're on a stream page (e.g. twitch.com/yourfavstreamer), just click the bookmarklet and it will do the following:

  1. Pause the Flash-based stream
  2. Open popup with the HLS-based stream

Behind the Scenes

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.

How to Build It Yourself

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.

License

Licensed under the MIT License.

Changelog

1/29/14

Initial release.

Further Reading

About

A bookmarklet to open the current Twitch stream in a HLS-based player in a new window

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published