Kodi Community Forum

Full Version: Retrieve uPNP Status via JSON?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Frodo RC1

Does anyone know if it is possible to use JSON RPC to detect if XBMC is acting as a uPNP media server? I tried GetActivePlayers but that was an empty array (unsurprisingly). I checked out the online documentation and did a search for upnp but it didn't show anything.

TIA
The only way to access upnp through JSON-RPC is to use Files.GetDirectory with a "upnp://" path. But it won't tell you whether it's active or not.
Thanks for the quick reply. At least it means I didn't mess up searching the documentation. Smile
I'll see what I can do at the OS level instead then (though it's probably UDP making it a bit trickier.)