m3u8downloader

0.2.5 • Public • Published

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');
});

/m3u8downloader/

    Package Sidebar

    Install

    npm i m3u8downloader

    Weekly Downloads

    17

    Version

    0.2.5

    License

    MIT

    Last publish

    Collaborators

    • vasuskimo