The KODI JSON API supports multiple active content types. For instance if you play music and a slideshow in parallel the API will report both content types.
Example:
Query:
curl http://kodihost:8080/jsonrpc -H "Content-type: application/json" -X POST -d'{"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":"1"}'
Response:
{
"id": "1",
"jsonrpc": "2.0",
"result": [
{
"playerid": 0,
"type": "audio"
},
{
"playerid": 2,
"type": "picture"
}
]
}
Currently the KODI component is hardcoded ( return self._players[0][‘type’] ) to the first playerid.
Please support an array of content types for the “media_content_type” property. Other features like PLAY/PAUSE are also hardcoded to the first playerid. Maybe it is useful to change that too.
Thank you.