owntone / owntone-server

Linux/FreeBSD DAAP (iTunes) and MPD audio server with support for AirPlay 1 and 2 speakers (multiroom), Apple Remote (and compatibles), Chromecast, Spotify and internet radio.
https://owntone.github.io/owntone-server
GNU General Public License v2.0
2.1k stars 237 forks source link

option to link outputs volume #1543

Open mfauvain opened 2 years ago

mfauvain commented 2 years ago

Would it be possible to link multi-outputs volume so that when an output volume changes, the rest of the outputs follow? The idea, if that makes sense, is to be able to control a multiroom volume with the physical buttons of the outputs (a remote control, directly on the airplay2 speaker, etc) One can write a small daemon that tracks changes and act upon it, but I thought that would be a good idea to have it embedded. Thx

ejurgensen commented 2 years ago

Specifically what volume control interface are you thinking of? Is it buttons on AP2 speakers? Most remotes change the master volume, thus changing all volumes like you suggest, so I don't think any change is required there.

mfauvain commented 2 years ago

I have some b&o speakers (airplay2) with volume controls that reflects in owntone, appletv with remote (that for some reason doe not reflect in owntone.. I thought it did) and some airplay1 airport express. For example I'd like to control all volumes (or main) via a b&o speaker volume control (touch control)

ejurgensen commented 2 years ago

I don't remember volume control for atv, and I suppose the express doesn't have any. But for the b&o it might be possible to add an Owntone setting declaring that it changes volume globally - is that what you are after?

mfauvain commented 2 years ago

Yeah that would be great. And to clarify, the atv volume is controled by the apple remote, however changing the volume with the atv remote is not reflected in owntone, is this expected behaviour or am I missing a setting?

ejurgensen commented 2 years ago

I don't remember how atv volume control works (technically), so can't say what should be expected. I suspect it might be tied into Apple Homekit.

mfauvain commented 2 years ago

ok, I would have thought ATV to be airplay2 as well (ie same protocol for sound). In any case (airplay1 or ATV) that would be great to 'pilot' the main volume from an Airplay2 speaker and have volumes synced at same level

CaseyRo commented 1 year ago

you could monitor https://owntone.github.io/owntone-server/json-api/#get-an-output and set the main volume based on the change? shouldn't be too hard using node-red (I tend to do the same for my 'stereo zone' homepods)

aleszczynskig commented 1 year ago

Hello, don't your stereo paired HomePods update volume levels automatically? Mine seem too, at least this is my anecdotal observation.

mfauvain commented 1 year ago

Yep, the idea though was to have this daemon embedded to owntone so it would be easy to 'link/unlink' speakers