JSON RPC Player.Open artwork and name ?
#1
I have a Python addon where I am using the following JSON RPC call to play a URL. 

xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Player.Open",  "params":{"item":{"file":%s }},"id":1}' % (itemurl))  

It works fine but I'd like to add a poster / icon to the player and maybe substitute a different name other than the URL, like playing a ListItem.  Can the poster and name be set via an RPC call ?  I haven't been able to find an example or anything in the documentation.  If so, is it set before or after calling the player ?


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#2
(2022-05-03, 16:19)jbinkley60 Wrote: I have a Python addon where I am using the following JSON RPC call to play a URL. 

xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Player.Open",  "params":{"item":{"file":%s }},"id":1}' % (itemurl))  

It works fine but I'd like to add a poster / icon to the player and maybe substitute a different name other than the URL, like playing a ListItem.  Can the poster and name be set via an RPC call ?  I haven't been able to find an example or anything in the documentation.  If so, is it set before or after calling the player ?


Thanks,

Jeff

Looking back through this topic I see that this question has been asked multiple times here without an answer.  I decided to abandon the JSON RPC approach for now and just use the traditional listitem approach with xbmc.Player().play(itemurl, listitem) and listitem.setArt  .  It works perfectly.


Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply

Logout Mark Read Team Forum Stats Members Help
JSON RPC Player.Open artwork and name ?0