omxplayer-controll
Controll omxplayer with native dbus
Installation
npm install omxplayer-controll [--save]
Usage
Short example running a video getting the status every 5 seconds and listeing to the aboutToFinis signal
var omxp = ;var opts = 'audioOutput': 'hdmi' // 'hdmi' | 'local' | 'both' 'blackBackground': false //false | true | default: true 'disableKeys': true //false | true | default: false 'disableOnScreenDisplay': true //false | true | default: false 'disableGhostbox': true //false | true | default: false 'subtitlePath': '' //default: "" 'startAt': 0 //default: 0 'startVolume': 08 //0.0 ... 1.0 default: 1.0;omxp;omxp;omxp;
API
List of available commands
Open single file
omxp;
Basic commands
omxp;omxp;omxp; //Playing, Paused,omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;omxp;
Other commands
Change de Alpha of the current window the value must be between 0 and 255
omxp;
Set the position of the window, only works in non full screen.
omxp;
Crop the video inside the window.
omxp;
Set the aspect mode for the video, must be one of the following: 'letterbox', 'fill', 'stretch', 'default'
omxp;