2013-11-19, 23:05
Hi,
I posted this over in a thread in Supplementary Tools, but I think this might be pretty useful here, too.
(I hope noone mistakes this for spamming, if it is, I would like to ask one of the mods to move the other thread from there to here. Thanks)
This is a library some of you who want to write web-interfaces for xbmc might like to use.
It allows for very easy use of xbmcs JSONRPC api via websockets.
It is as simple as including a single .js file on your site and then doing something like this:
Where handleMovies is a function which does something with the query result.
I hope this helps someone, and I would love to hear some feedback on this.
I posted this over in a thread in Supplementary Tools, but I think this might be pretty useful here, too.
(I hope noone mistakes this for spamming, if it is, I would like to ask one of the mods to move the other thread from there to here. Thanks)
This is a library some of you who want to write web-interfaces for xbmc might like to use.
It allows for very easy use of xbmcs JSONRPC api via websockets.
It is as simple as including a single .js file on your site and then doing something like this:
Code:
var connection = xbmc(window.location.hostname, 9090);
connection.run('VideoLibrary.GetMovies')(['title', 'rating', 'year'], {"start" : 0, "end": 2}, handleMovies);
Where handleMovies is a function which does something with the query result.
I hope this helps someone, and I would love to hear some feedback on this.