Skip to content

This node module downloads a m3u8 playlist into a specified local directory, with all its media segments

License

Notifications You must be signed in to change notification settings

zealot-wei/m3u8downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This node module downloads a m3u8 playlist into a specified local directory, with all its media segments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%