Xbmc Wrapper is an ultra-minimalistic wrapper for the XBMC JSON-RPC API. Unlike other wrappers, functions are generated dynamically from the services JSONRPC.Introspect endpoint
Advantages
- Functions are generated dynamically on the fly
- Access to all 273 api calls in under 100 lines of code!
To call the VideoLibrary.GetMovies function
var config = {
XbmcHost: "127.0.0.1",
XbmcPort: 8081,
DebugLogging: true
}
var xbmc = require('Xbmc-Wrapper');
//See JSON-RPC documentation for full list of available parameters
var parameters = {
properties: [
"title",
"genre",
"year",
"rating"
]
};
xbmc.VideoLibrary.GetMovies(parameters, function(retVal) {
//callback
});
Full specification of the XBMC JSON-RPC available functions can be found here.
1.0.0
Xbmc Wrapper has only one small dependency.
The MIT License (MIT)