simple omxplayer wrapper for node
This is a simple omxplayer wrapper for node. omxplayer is a commandline videoplayer which is often used with an raspberry pi.
var omx = require'omxctrl';omxplay'whatever.mp4'; // Start Playbackomxstop; // kill the omxplayer instance// While a Video is playing the following self-explaining// methods can be usedomxdecreaseSpeed;omxincreaseSpeed;omxpreviousAudioStream;omxnextAudioStream;omxpreviousChapter;omxnextChapter;omxpreviousSubtitleStream;omxnextSubtitleStream;omxtoggleSubtitles;omxdecreaseSubtitleDelay;omxincreaseSubtitleDelay;omxpause; // toggle between pause and playomxdecreaseVolume;omxincreaseVolume;omxseekForward;omxseekBackward;omxseekFastForward;omxseekFastBackward;// There are also some events// you can react toomxon'playing'// Notice that this will only get triggered// after a new file starts playing. Not// after pause/play.console.log'playing: ' filename;;omxon'ended'console.log'playback has ended';;
npm install omxctrl
Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.