2022-05-03, 16:19
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
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