0.4.5 • Published 3 years ago

vlconductor v0.4.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

VLConductor

Allowing programmatic NodeJS control of VLC Player for Raspberry Pi, without a GUI or windowing system.

The name: "VideoLAN Conductor" or just "VLC Conductor".

Based on my other library omxconductor which offered similar functionality, but using the somewhat-deprecated omxplayer. (VLC Player supports hardware-accelerated 4K HEVC playback, for example.)

Uses the VLC HTTP API as per https://wiki.videolan.org/VLC_HTTP_requests/

API

  • new Player((file: string, options: Partial<PlaybackOptions>)
  • open(): start playback
  • stop():
  • pause(): pause if playing, ignored otherwise
  • resume(): play if paused, ignored otherwise
  • seek(value: string): use VLC's peculiar seek syntax
  • close(): stop playback, kill subprocess
  • addPositionEvent(position: number, handler: (position?: number) => void): add a trigger (call the event handler) when a position is hit/passed

TODO:

  • Multiple layers, multiple players?
  • Different functions for various seek value types
  • Setup VSCode debugging
  • Some unit tests
0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago