2011-10-23, 11:45
carmenm Wrote:Actually what bugs me most is that the response doesnt follow xbmc json specification. Especially i dont get a "failure" field(which i rely on just to know that XBMC answered correctly).Why do you expect a "failure" field? First of all I have never heard of a "failure" field in JSON-RPC and second of all your request didn't fail. If no player is playing, that is not an error so an empty array will be returned.
Moreover, i was watching a movie!
I ll post a complete response example this afternoon.
Thanks for your quick answer.
I just tested it on my dev machine and if I'm watching a movie I get
Code:
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"playerid": 1,
"type": "video"
}
]
}
Code:
{
"id": 1,
"jsonrpc": "2.0",
"result": [ ]
}