Skip to content

Control your VLC with Node. JS with Socket. IO + vlc-control-node module

Notifications You must be signed in to change notification settings

gordosteam/vlc-control-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vlc-control-io

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

NPM

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.

About

Control your VLC with Node. JS with Socket. IO + vlc-control-node module

Resources

Stars

Watchers

Forks

Packages