multizone-audio icon indicating copy to clipboard operation
multizone-audio copied to clipboard

AutoConfig vs. meta

Open gregorij89 opened this issue 1 year ago • 4 comments

Hi, this is more a question that an issue. Firstly big thanks to you and your awesome job. I am implementing the same use case as you, but leveraging docker for that. So I am not using your code directly, but it is a huge inspiration for me.

Now to the question. As snapcast-autoconfig seems to be abandoned, I don´t want to build up my solution on it. I am playing around with a python-snapcast library to duplicate the behavior but so far I am in the PoC phase. But today, I´ve got another idea. Why one needs autoconfig, when snapcast offers meta sources? The theory: I want to have priorities on the sources of the sounds and also on the logical zones. Meaning airplay has the highest priority, then plexamp, then mopidy. Zone-wise, "local" has the highest priority, then parts of the house and then the whole house. So why one shouldn´t configure one meta stream for each physical device (each snapcast client) in the way meta:///local-airplay/local-plexamp/local-mopidy/mastersuite-airplay/mastersuite-plexamp/mastersuite-mopidy/house-airplay/house-plexamp/house-mopidy? It should work, does it? The downside is, that even "local" sources have to be streamed through snapcast, but it doesn´t bother me so much. What do you think?

Second question I have is about multiple shairport-sync instances. How do you configure them? My snapserver.conf file containing these lines:

stream = airplay:///usr/local/bin/shairport-sync?name=house-airplay&devicename=House&port=7000&params=--configfile=/config/dum-shairport-sync.conf stream = airplay:///usr/local/bin/shairport-sync?name=mastersuite-airplay&devicename=MasterSuite&port=7001&params=--configfile=/config/mastersuite-shairport-sync.conf

But in iOS, when I want to select the device for streaming, I can see only one of these two. And more strangely, if I connect to them, they are interchanging. So I am seeing a device called MasterSuite, but once I connect to it, it changes to House and streams to house pipe. Also the name in iOS changes to House. Then I disconnect and connect back to House. In that moment, it change back to MasterSuite and streams to mastersuite pipe.

I know these questions are not directly related to the code you are providing, but still, I am hoping for an answer :).

gregorij89 avatar Jul 25 '23 17:07 gregorij89