@ffrm/node-vlc

1.0.2 • Public • Published

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 the VLC_FONT_COLOR_PALETTE object reference inside index.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 between 0...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.

Readme

Keywords

none

Package Sidebar

Install

npm i @ffrm/node-vlc

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

6.67 kB

Total Files

5

Last publish

Collaborators

  • ffrm