Kodi Community Forum
checking active clients on UPNP streaming - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: checking active clients on UPNP streaming (/showthread.php?tid=367038)



checking active clients on UPNP streaming - mjnman - 2022-02-14

Hi,
Would I ask if possible to check with jsonrpc api or others command the streaming in using status of service UPNP.
Now I checking the active content players with command "curl --data-binary '{ "jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": "bash-script"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc -s" but I need to verify if the streaming  is it in progress from some clients.
I need to use the auto suspend system but I don't know how I can verify if the UPNP is used from clients because the protocol send entire MP3 to the clients and wait the next song for other network traffic. Maybe 20 minutes or other.
thanks