Play with another player
#1
Hi,

I'm trying to use JSON RPC to play a movie on a remote player. I'm using Kodi 17-0 BETA5 Git:20161028-e92818a on Windows 10
(it didn't work on Kodi 16.1 so I decided to try with the last version).

When I call Player.GetPlayers with :
Code:
{"jsonrpc":"2.0","method":"Player.GetPlayers","id":1}

I obtain:
Code:
{"id":1,"jsonrpc":"2.0","result":[{"name":"VideoPlayer","playsaudio":true,"playsvideo":true,"type":"video"},{"name":"PAPlayer","playsaudio":true,"playsvideo":false,"type":"music"},{"name":"Freebox Player","playsaudio":true,"playsvideo":true,"type":"remote"}]}

I now want to use JSON RPC to play a movie to my remote player called "Freebox Player" so I call Player.Open with the "playername" option (see the source code):
Code:
{"jsonrpc":"2.0","method":"Player.Open","id":1,"params":{"item":{"movieid":78},"options":{"playername":"Freebox Player"}}}

The server returns OK. However nothing happens and the movie doesn't start reading on the remote player.

If I change the "playername" to "VideoPlayer" then it's correctly played by my local Kodi.
If I use my Freebox Player to navigate thru Kodi and if I start a movie from there, then it works.

Any idea about how to play a movie to a remote player using JSON RPC ?

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Play with another player0