This node module downloads a m3u8 playlist into a specified local directory, with all its media segments
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
m3u8dtest.js
package.json

README.md

m3u8downloader

Downloads a m3u8 playlist into a specified local directory, with all its media segments

Usage

It is super simple to use.

Prerequisite

The destination directory must be present for this module to work. So, create the destination directory before usage.

var m3u8downloader = require('m3u8downloader');
var downloader = new m3u8downloader("http://www.nacentapps.com/m3u8/index.m3u8", "destination",
function(err, data)
{
    if(err)
        console.log(err);
    else
        console.dir(data)
});

downloader.on('start', function()
{
    console.log("started downloading");
});

downloader.on('progress', function(d)
{
    console.log(d);
});


downloader.on('downloaded', function(d)
{
    console.log(d);
});


downloader.on('complete', function(d) 
{
    console.log('done');
});