2016-07-17, 22:31
I'm trying to use JSON in my addon, so i'm using the JSONRPC.Introspect call to see what gets returned.
The above code works. I call it in my xbmc.player.onPlayBackStarted event handler (probably not important info) and get 'expected' info back.
However, if I replace "Application.SetMute" with "Video.Details.File" then I get following error:
Is the "Video.Details.File" method removed (typo ?, I copy/paste from the wiki)? I'm using krypton alpha 2 (17.0-ALPHA2 Git:20160630-f3ca4ea).
Or maybe a problem on my side?
Code:
JSON_req = {"jsonrpc": "2.0", "method": "JSONRPC.Introspect", "params": { "filter": { "id": "Application.SetMute", "type": "method" } }, "id": 1 }
JSON_result = utils.executeJSON(JSON_req)
log('JSON syntax query = %s' % JSON_result)
The above code works. I call it in my xbmc.player.onPlayBackStarted event handler (probably not important info) and get 'expected' info back.
However, if I replace "Application.SetMute" with "Video.Details.File" then I get following error:
Code:
{u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602}}
Is the "Video.Details.File" method removed (typo ?, I copy/paste from the wiki)? I'm using krypton alpha 2 (17.0-ALPHA2 Git:20160630-f3ca4ea).
Or maybe a problem on my side?