2011-12-19, 08:49
Hi,
Just having issues JSON-RPC with the Eden Nightlies, so I wanted to list out a couple of examples.
1) Retrieve Information from XBMC with a Command
{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": 1 }
2) Retrieve Information from XBMC with a Command and a Parameter
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "properties": [ "playcount" ] }, "id": 1 }
3) Retrieve Information from XBMC with a Command and more than 1 Parameter
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "properties": [ "playcount", "year" ] }, "id": 1 }
So, those all work, but the one I'm currently having issue with is ...
Player.GetItem
USING: { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 1 }, "id": 1 }
or
USING: { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 1, "properties": ["title"] }, "id": 1 }
ERROR: {"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}
Any ideas what the appropriate call is for Player.GetItem ?
Just having issues JSON-RPC with the Eden Nightlies, so I wanted to list out a couple of examples.
1) Retrieve Information from XBMC with a Command
{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": 1 }
2) Retrieve Information from XBMC with a Command and a Parameter
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "properties": [ "playcount" ] }, "id": 1 }
3) Retrieve Information from XBMC with a Command and more than 1 Parameter
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "properties": [ "playcount", "year" ] }, "id": 1 }
So, those all work, but the one I'm currently having issue with is ...
Player.GetItem
USING: { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 1 }, "id": 1 }
or
USING: { "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 1, "properties": ["title"] }, "id": 1 }
ERROR: {"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}
Any ideas what the appropriate call is for Player.GetItem ?