Hello, I have discovered something new!
{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}
This code obtains which player is active.
It returns as:
{"id": 1, "jsonrpc": "2.0", "result": [ { "playerid": 0, "type": "audio" } ]}
if playerid is 0 it is an audio file, if playerid is 1 it is a video file. These values are vital if you want to control Kodi. So Node-red and Kodi work are getting harder.
How can I use this code
{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}
and then how can I obtain the player data to use in?