Posts: 548
Joined: Jul 2010
Reputation:
14
VideLibrary.SetMovieDetails
{"id":0,"jsonrpc":"2.0","method":"VideoLibrary.SetMovieDetails","params":{"movieid":1,"playcount":1}} (untested)
Posts: 171
Joined: Jan 2011
Reputation:
0
Is there somewhere that I can learn this JSON jargon... I'm trying to create a command to go to Movies, Music, and TV Shows from anywhere in XBMC.... For instance, if I'm on the setup screen, I want to be able to immediately goto the Movies screen with a command.....Any help would be appreciated as well as a detailed description JSON and how it works. I know that my be asking alot, but I am having a lot of trouble figuring it out on my own.
Posts: 573
Joined: Mar 2012
Reputation:
17
Hi,
When adding items from an addon to the "now playing" playlist over json-rpc, the thumbnail often doesn't get added and the label is calculated from the stream url (and is often empty) . This is probably because the file is not in the library and is added using Playlist.Add (with "file" parameter) and xbmc cannot resolve the label and thumbnail from the http url, which is understandable. xbmc probably passes the thumbnail and label to the playqueue when it is played from the plugin directly.
Would it be possible to add a thumbnail and label parameters (or maybe even more metadata) to Playlist.Add when using the "file" option to queue an item to bypass this problem?
Example where you can see the problem: Adding a stream from the addon "digitally imported" to the playqueue using xbmc shows the thumbnail and proper label, adding the same using json-rpc shows a part of the http url and no thumbnail.
Should I open a feature request for this?
Posts: 714
Joined: Feb 2008
Reputation:
2
Can I use JSON-RPC with keymaps?
If yes, which keymap file should I use (is it keyboard.xml)?
For example when I send the Input.Action "left" command, I would like it to do something different when playing back fullscreen video.