Package Exports
- simple-xbmc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-xbmc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Kodi/XBMC JSON RPC node interface

SimpleXBMC
The module uses XBMC JSON-RPC Api V6 to provide a complete and simple API to allow communication with XMBC/Kodi instances using a TCP socket connection
Examples
Connect to an XBMC/Kodi instance and send the PlayPause command:
var SimpleXBMC=require('simple-xbmc');
var xbmc = new SimpleXBMC('127.0.0.1',9090);
xbmc.player.playPause({playerid: 1}, function(responce){
console.log(responce);
});Connect to an XBMC/Kodi instance and request the active players:
var SimpleXBMC=require('simple-xbmc');
var xbmc = new SimpleXBMC('127.0.0.1',9090);
xbmc.player.getActivePlayers({}, function(responce){
console.log(responce);
});Using interface to receive notifications from XBMC/Kodi
var SimpleXBMC=require('simple-xbmc');
var xbmc = new SimpleXBMC('127.0.0.1',9090);
xbmc.player.on('play',function(data){
console.log('Play');
});
xbmc.player.on('pause',function(data){
console.log('Pause');
});
xbmc.player.on('stop',function(data){
console.log('Stop');
});TODO
Tests?