-
Notifications
You must be signed in to change notification settings - Fork 26
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
Distribute volume adjustments in partymode #13
Comments
Hi, in GroupRenderingControl there is the upnp command to SetGroupVolume. This has to be used on the master of the group but then adjusts the volume on all zones in that group. It woks like the controller does - however if you read formums lots of people are confused by how it works! http://forums.sonos.com/showthread.php?t=36960 Cheers David |
SetGroupVolume is probably the way to go, but for volume,bass and treble this seems to work quite nice
it should probably be a separate command though, as you might not always want to distribute it, and I guess the 'if soco.group.coordinator.ip_address == soco.ip_address:' isn't really needed as you can also find members from a slave. I'll ponder a bit more on it before pushing any changes. |
You don't need to compare IP addresses. Just compare the instances: If soco.group.coordinator is soco:
# do stuff |
@lawrenceakka thanx :) looks like I can also do the negation with |
Wasn't entirely sure how to name this, but I tend to keep my speakers in partymode, and then when I adjust the volume, I usually want to keep the same volume across the 'party', today this implies running the same command again per speaker.
There are of course multiple ways this can functionally work, I like the way it's done in the official Android app where the default in partymode is to adjust all speakers, while you still can adjust them individually.
I think we can either add a separate 'partyVolume' command or change behaviour of volume based on a boolean partymode state, but if we change this behaviour, should it then somehow still be possible to adjust only one specified speaker?
I believe any solution we end up with involves checking the topologies to find the master node and all the slaves, then adjust them all with the given factor?
The text was updated successfully, but these errors were encountered: