vlc-api

HTTP API client for vlc v2.0.1 Twoflower

npm install vlc-api
2 downloads in the last week
24 downloads in the last month

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.

npm loves you