Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
HTTP API client for vlc 2.0.1 Twoflower (Yes, vlc has an http api)
tree: 6c12adb5ba

README.md

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.

Something went wrong with that request. Please try again.