@ffrm/node-vlc
v1.0.2
Published
A library for controlling vlc from Node.js.
Downloads
2
Readme
Node VLC
Inspired by node-omxplayer, node-vlc
is a simple library for controlling VLC from Node.js.
Usage
const VLC = require('node-vlc');
var player = VLC('/path/to/source_file', {
/* list of options */
});
player.pause();
API
VLC(String src, Object options)
src
: The video file/url location.options
: List of extra options. See the following properties:fontColor
: Subtitle font color. See theVLC_FONT_COLOR_PALETTE
object reference insideindex.js
fontSize
: Subtitle font size relation. Attention: In VLC this option refers to a relational size not a value in px.subtitle
: Load this subtitle file. To be used when autodetect cannot detect your subtitle file.subtitleBackgroundOpacity
: Background opacity, must be an integer between0...255
.initialVolume
: Initial volume value.
.play()
Play the video. Only use when paused as it is already playing from the start.
.pause()
Pause the video.
.fastFwd()
Fastfoward some seconds.
.rewind()
Rewind some seconds.
.quit()
Quit the spawned player.
.isPlaying()
Returns the playing state.