Posts: 17
Joined: Apr 2009
Reputation:
0
z1022
Junior Member
Posts: 17
2013-11-26, 07:33
(This post was last modified: 2013-11-26, 07:40 by z1022.)
{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}
As above, I do know how to set the id value. All set to "1" is OK. I found all the example is "1". When it set to "1" ? When it set to other value ?e.g. "id": "AudioGetItem"
Where can I find the how to use set it.
Thanks
Posts: 5,184
Joined: Jan 2009
Reputation:
131
You can use any arbitrary value for the "id" field. It is meant as an identification of the response so that you can map a request to a response. What I did in my JSON-RPC client was to increment the ID with every request, therefore every request has a unique ID and I can map the returned response to the request to know what the response belongs to.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.