How does snapcast work at all? #2397
-
Hey there! I am trying to use Music Assistant to control a separate snapcast server but I am completely lost in how this should work in any way? I would expect the audio to play after I selected the speaker but nothign happens? I only get this error:
in my homeassistant log, I am pretty clueles but it seems like a new stream with a new port is opened from time to time? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 28 replies
-
Have you reviewed the troubleshooting section of the docs? |
Beta Was this translation helpful? Give feedback.
-
Using an external server is an advanced use, it is for some users who need to touch the configuration file or snapcast is the center of their audio system and not Music Assistant. Does your network have something like vlans or is it flat ? |
Beta Was this translation helpful? Give feedback.
-
Question - What do I need to do to enable it or configure it? I am trying to use snapcast as client running on the same RPI as the HA/MA server so I can play audio out of the pi itself through the default HDMI output port and into an amplifier feeding some in-house speakers. |
Beta Was this translation helpful? Give feedback.
-
I cant seem to figure this out. It seems like it should be straightforward but its obviously not.
This is where I am struggling: |
Beta Was this translation helpful? Give feedback.
Thank you very, very, very much, it works now!
In the following section I will comprehend the content of this thread to state a condensed solution to my problem in order to mark it as the answer.
Problem solution
First of all many thanks to @SantiagoSotoC for the extensive help!
I was running the snapcast server in a docker container which had following port bindings: 1704:1704, 1705:1705 and 1780:1780. This allowed a connection from MusicAssistant to my snapcast server because for this the already forwarded port 1705 is used.
However playing a stream is done by adding a stream to the snapcast server and then selecting it as the source. As the stream is started on a port between 4953 and …