slugline is a library for consuming HLS playlists.
It can be used in node.js and in the browser.
- β Fetching playlists
- β Fetching media segments
- β Parsing Media Playlists
- β Parsing Master Playlists
- β Retry logic (timeout, 500, network error, etc)
- β
Parsing Media Segments
- β Fragmented MP4
- β
Transport Stream
- β PAT
- β PMT
- β Packetized Elementary Streams
- β ADTS Streams
- β Transmuxing transport streams to fragmented mp4
- β Periodic fetching of event & live playlists
- β Range Requests
COMING SOON
COMING SOON
Dependencies for setting up a development environment are managed with npm.
One needs to simply clone the repo and run npm install
like so:
$ git clone https://github.com/krad/slugline.git slugline
$ cd slugline
$ npm install
The test suite relies on some fixtures that are too large to be distributed along with the library. A fetch script is included and relies on wget to retrieve assets.
To prepare the environment simply run:
$ ./tests/fixtures/fetch.sh
And wait for all the assets to download.
npm run test
npm run autotest