Play icon indicating copy to clipboard operation
Play copied to clipboard

Playback change notifications

Open n1mda opened this issue 12 years ago • 2 comments

The regular Sonos controller appears to get automatic notifications on changes in playback on any sonos device. If you change the volume via any means, ie. another controller, or via some other API the regular controller updates the volume level immediately. Thus it seems likes sonos devices sends out packets on the network notifying any controllers about changes. Perhaps via broadcasting packets or whatever, I haven't looked into it.

Is this something we can implement in Play? Instead of polling the playback status every n second for example.

n1mda avatar Nov 19 '13 14:11 n1mda

Yeah I've noticed these requests in Wireshark but I'm not well versed in how this actually works. It's on my list of things to eventually figure out but not sure when I'll get to it.

nathanborror avatar Nov 19 '13 19:11 nathanborror

I created some code to discover devices on a local network, available here: https://github.com/n1mda/sonos-objc Take a look at SonosDiscover.h/m

n1mda avatar Nov 21 '13 21:11 n1mda