Socket
Book a DemoInstallSign in
Socket

omx-controller

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omx-controller

A simple wrapper for controlling OMXPlayer through node.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

omx-controller

A simple wrapper for controlling OMXPlayer through node.

Install

npm install omx-controller

Example

var OMXControl = require('omx-controller');
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.

FAQs

Package last updated on 18 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts