vlc-control-io

0.0.3 • Public • Published

vlc-control-io

Control your VLC with Node. JS with socket.io + vlc-control-node module

Setup

First you have to emit an IO from the client with the name of cfg.

Example:

socket.emit('cfg', {
		ip : 'localhost',
		port : 8080,
		user : '',
		password : 'password'
	});

Using

To use you have to emit the commands

Examples:

Add to PlayList and Play

socket.emit('command', {
		command : 'addAndStart',
		params : {
			uri : '/path/to/the/file',
			noaudio : false,
			novideo : false
		}
	});

Play

socket.emit('command', {
		command : 'play',
		params : {
			id: 0
		}
	});

Stop

socket.emit('command', {
		command : 'stop'
	});

This commands will return an Object with informations that VLC will return.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i vlc-control-io

    Weekly Downloads

    1

    Version

    0.0.3

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • brilvio