Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback change notifications #4

Open
n1mda opened this issue Nov 19, 2013 · 2 comments
Open

Playback change notifications #4

n1mda opened this issue Nov 19, 2013 · 2 comments

Comments

@n1mda
Copy link

n1mda commented Nov 19, 2013

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.

@nathanborror
Copy link
Owner

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.

@n1mda
Copy link
Author

n1mda commented Nov 21, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants