node-vlc-json
Control VLC by using its JSON API
Installation
$ npm install --save node-vlc-json
Usage
var VLC = ;var player = ; player;
The following functions are exposed:
player; // play a media file or streamplayer; // continue playingplayer; // pause the playbackplayer; // stop the current playbackplayer; // terminate the playerplayernextcb; // skip to the next media in the playlistplayerpreviouscb; // skip to the previous media in the playlistplayer; // callback called with bool that indicates the playback stateplayerstatuscb; // callback called with the status of the VLC playerplayer; // take a snapshot and save it to snapshotPath
Options
The constructor of VLC accepts this options:
- interface
- httpPort
- httpPassword
- snapshotPath
- vout
- aout