1.2.24 • Published 6 years ago

@krad/slugline v1.2.24

Weekly downloads
16
License
MIT
Repository
-
Last release
6 years ago

slugline

Build Status Coverage Status

slugline is a library for consuming HLS playlists.

It can be used in node.js and in the browser.

Features

  • ✅ 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

Usage

COMING SOON

Demos

COMING SOON

Development setup

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

Testing

Preparation

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.

Running tests

Unit tests

npm run test

Autotesting

npm run autotest

1.2.24

6 years ago

1.2.23

6 years ago

1.2.22

6 years ago

1.2.21

6 years ago

1.2.20

6 years ago

1.2.19

6 years ago

1.2.18

6 years ago

1.2.17

6 years ago

1.2.15

6 years ago

1.2.14

6 years ago

1.2.13

6 years ago

1.2.12

6 years ago

1.2.11

6 years ago

1.2.10

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago