omx-controller
v0.0.2
Published
A simple wrapper for controlling OMXPlayer through node.
Downloads
3
Readme
omx-controller
A simple wrapper for controlling OMXPlayer through node.
Example
var OMXControl = require('omxcontroller');
var path = '/some/path/to/my/video/file.mp4';
var omx = new OMXControl(path, {
'--vol' : 6,
'-l': 'local'
});
omx.pause();
omx.on('error', function(err){
console.log('uh oh');
});
omx.on('closed', function(){
// player has closed, and the video has stopped.
});
omx.play();
Check the source for further playback methods, including nextChapter
, volumeUp
, etc.