2013-01-06, 23:57
(2013-01-06, 23:05)Millencolin007 Wrote: Hi,This is more of a problem on how or rather when XBMC retrieves the details for an item. When you view it in the GUI, it gets the details directly from the plugin and has it available when you queue it. Through JSON-RPC there's only the filename/stream URL and it doesn't look up the information. IMO there should be some logic to retrieve those details before adding the item to the playlist but I'm not sure if that's even possible with plugins right now (i.e. retrieving details for a single item).
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?
(2013-01-06, 23:21)Ayla Wrote: Can I use JSON-RPC with keymaps?I'm not sure I follow. JSON-RPC's Input.* methods do not care about keymaps as they already execute actions (and not keypresses). So when you send Input.Action "left" it will do whatever happens for the "left" action and not for the "left" key.
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.