Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a small wrapper for controlling omxplayer in node
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Readme.md
index.js
package.json

Readme.md

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.

Something went wrong with that request. Please try again.