multimedia
Simple Multimedia helper Api
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install multimedia-helper --save
Usage
var mm = require('multimedia-helper')
mm.mediainfo(filepath, function(err, mediainfo){ assert.ifError(err);
console.log(mediainfo);
});
Specify type:
mm.Video(filepath).info(function(err, info){ assert.ifError(err);
console.log(info);
});
mm.Audio(filepath).info(function(err, info){ assert.ifError(err);
console.log(info);
});
Detection:
mm(filepath, function(err, multimedia){ assert.ifError(err);
var info = multimedia.info();
console.log(info);
});
Issues
TODO
Dependencies
None
Dev Dependencies
None
License
MIT