Socket
Socket
Sign inDemoInstall

@ffrm/node-vlc

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ffrm/node-vlc

A library for controlling vlc from Node.js.


Version published
Weekly downloads
6
Maintainers
1
Install size
6.51 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 04 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc