Skip to content

timsuchanek/rtmp-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rtmp-download

A Node Module to download RTMP videos. Important: This Module requires the C lib rtmpdump. rmtpdump for Mac

var rtmp = require('rtmp-download');

var config = {
	src: 'rtmp://video.url/video.mp4',
	target: '/home/user/videos/video.mp4',
	onProgress: function(data) {},
	onExit: function(data) {},
	onError: function(error) {}
};

rtmp.download(config);

Installation

$ npm install --save rtmp-download

Data

The data object of the callbacks onProgress and onExit contains the following data:

{
	kbLoaded: 12345,
	secondsLoaded: 12,
	percent: 10.5
}