0.0.2 • Published 11 years ago

omx-controller v0.0.2

Weekly downloads
10
License
-
Repository
-
Last release
11 years ago

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.