Home Reference Source Repository

kodi-socket

NPM

Kodi/XBMC class exposes JSON-RPC API and notifications

Installation

npm install --save kodi-socket

Usage

import Kodi from 'kodi-socket';

let kodi = new Kodi({
    host: 'localhost',
    port: 9999,
    connectImmediately: true
});

kodi.api.Player.PlayPause();

kodi.api.VideoLibrary.GetMovies().then( movies => { ... } );

// or
let movies = await kodi.api.VideoLibrary.GetMovies();

License

MIT