25.06.2016, 19:37
Hi David,
You can get the number of items from the Sonos by using MediaRenderer -> Queue -> Browse and then invoke with QueueID = 0, StartingIndex = 0, RequestedCount = 0
If you include this in your function upnpavcmd you should be able to get the NumberReturned value that holds the number of items inside the Queue
If NumberReturned = 0 then you can start your Radio URI
See attachment for screenshot from Device Spy with the fields you need
Good luck!
BR,
Erwin
You can get the number of items from the Sonos by using MediaRenderer -> Queue -> Browse and then invoke with QueueID = 0, StartingIndex = 0, RequestedCount = 0
If you include this in your function upnpavcmd you should be able to get the NumberReturned value that holds the number of items inside the Queue
If NumberReturned = 0 then you can start your Radio URI
See attachment for screenshot from Device Spy with the fields you need
Good luck!
BR,
Erwin