ID question
#1
{"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
Reply
#2
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.
Reply
#3
Understand. Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
ID question0