You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@richienb/vlc

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@richienb/vlc

An interface to VLC Media Player.

3.0.2
latest
Source
npm
Version published
Weekly downloads
35
-20.45%
Maintainers
1
Weekly downloads
 
Created
Source

vlc

An interface to VLC Media Player.

Highlights

  • Automatic command encoding and delivery.
  • Automatic port acquisition.
  • TypeScript support.
  • Bundled binaries.
  • No native dependencies.
  • Actively maintained.

Install

npm install @richienb/vlc

Usage

import createVlc from '@richienb/vlc';

const vlc = await createVlc();

// Play audio
await vlc.command('in_play', {
	input: 'audio-file.mp3',
});

// Pause/resume audio
await vlc.command('pl_pause');

API

createVlc()

Returns a promise which resolves with the vlc instance.

vlc.info()

Get the current player status. Returns a promise.

vlc.playlist()

Get the current playlist information. Returns a promise.

vlc.command(command, options?)

Execute a command on the player. Returns a promise that resolves when the command has been sent.

command

Type: string

The command to execute.

Keywords

vlc

FAQs

Package last updated on 15 Sep 2021

Did you know?

Socket

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