This package has been deprecated

Author message:

I wrote this module a very long time ago; you should use something else.

vlc-api

0.0.0 • Public • Published

vlc-api

HTTP API client for node.js

(Yes, vlc has an http api)

Install:

npm install vlc-api

Example:

$ node
> var vlc = require('./')();
undefined
> vlc
{ apiVersion: 
   { vlc: '2.0.1 Twoflower',
     spec: 'http://repo.or.cz/w/vlc.git/blob/HEAD:/share/lua/http/requests/README.txt' },
  _base: 'http://localhost:8080',
  status: 
   { [Function]
     enqueue: [Function],
     addSubtitle: [Function],
     play: [Function],
     goto: [Function],
     pause: [Function],
     stop: [Function],
     resume: [Function],
     next: [Function],
     previous: [Function],
     prev: [Function],
     delete: [Function],
     empty: [Function],
     audioDelay: [Function],
     subtitleDelay: [Function],
     aspectRatio: [Function],
     sort: [Function],
     random: [Function],
     loop: [Function],
     repeat: [Function],
     discovery: [Function],
     fullscreen: [Function],
     volume: [Function],
     seek: [Function],
     preamp: [Function],
     equalizer: 
      { [Function]
        enable: [Function],
        disable: [Function],
        preset: [Function] },
     title: [Function],
     chapter: [Function],
     audioTrack: [Function],
     videoTrack: [Function],
     subtitleTrack: [Function] },
  playlist: [Function],
  browse: [Function] }
> vlc.status.pause()
undefined
> vlc.status.resume()
undefined
> 
 

Tests:

  1. Turn on vlc with the http interface enabled and listening on 8080.
  2. Get a playlist going.
  3. Run npm test for a CRAZY ROBOT REMIX

License:

MIT/X11.

Dependents (1)

Package Sidebar

Install

npm i vlc-api

Weekly Downloads

1

Version

0.0.0

License

none

Last publish

Collaborators

  • jfhbrook