Cannot cast audio to Google Chromecast #2209
-
What version of Music Assistant has the issue?2.0.0b145 What version of the Home Assistant Integration have you got installed?n/a Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problemI'm trying to cast Deezer to a Google Chromecast (one without Google TV). It finds the Chromecast, but when I select a song, nothing happens, counter stays at 0:00 I tried RadioBrowser, same problem. This is repeatedly in the logs:
How to reproduceSelect a song. Music ProvidersDeezer Player ProvidersChromecast Full log outputAdditional informationUsing self hosted on Docker. What version of Home Assistant Core are your running2024.5.1 What type of installation are you running?Home Assistant Container On what type of hardware are you running?Raspberry Pi |
Beta Was this translation helpful? Give feedback.
Replies: 22 comments 18 replies
-
Please follow the instructions and only attach - do not paste - the log so we can read this report. |
Beta Was this translation helpful? Give feedback.
-
Sorry about that @OzGav ! I've just done that. |
Beta Was this translation helpful? Give feedback.
-
OK can you list what you have tried from the troubleshooting page and what didn't help. |
Beta Was this translation helpful? Give feedback.
-
I've tried restarting MA, cleared the cache (in MA), tried enable/disable Enable queue flow mode. It's showing as Flac, but for CC there doesn't seem to be a setting to use MP3. Tried two music providers, Deezer and RadioBrowser. Checked the logs, which shows a 104 Chromecast error, based on my internet search it seems like a coding issue. I've previously also tried a DLNA app on my tablet (BubbleUPNP) but that was causing similar issues. I don't have a complicated network setup, all on the same subnet. Just a side note, there is no feedback in the UI, i.e. it just does not play, it would be great if errors could be displayed in the UI. Please let me know what else you need to know @OzGav |
Beta Was this translation helpful? Give feedback.
-
Have you ever had MA working? |
Beta Was this translation helpful? Give feedback.
-
Not really. It worked briefly using DLNA, but was not reliable. Therefore trying to use Chromecast. @OzGav |
Beta Was this translation helpful? Give feedback.
-
The log you supplied is showing beta 143? I see you are running in docker. Have you started the container in host networking mode and privileged mode? |
Beta Was this translation helpful? Give feedback.
-
I'm using this image: Setting privileged to true seems to make it work, sometimes. The MA UI still doesn't work all the time, randomly Music Assistant does show up blank on Chromecast, then I try a different song, and the MA UI doesn't update. The lack of error handling in the MA UI is frustrating. Sorry but in this state I can't hand it over to non tech people in the house. I've spent already a lot of time on this, think I'm going to give up. |
Beta Was this translation helpful? Give feedback.
-
OK. We would like to get it working for you as there are 10000+ people using it these days and we are just about to go to the stable build. You do have to run it in privileged mode. In that mode if there are different errors in the log then you can post that and we can have a look. Regardless I will leave this open for a while as Marcel may spot something straight away |
Beta Was this translation helpful? Give feedback.
-
My major concern with MA at this stage is the lack of error handling in the UI. Also, selecting another player is frustrating as it opens on the side and it's confusing how to select it. I just tried, another error in the logs:
Had to try three times and then it suddenly worked. |
Beta Was this translation helpful? Give feedback.
-
Yes there is something wrong with your setup as it works very fast for most people. What hardware are you running it on? How much RAM? |
Beta Was this translation helpful? Give feedback.
-
On a RPI4. Zero issues in other apps, like HA, it's very fast. My issue is not really that it's slow, but that the UI doesn't show any progress indicators / errors / warnings. |
Beta Was this translation helpful? Give feedback.
-
Progress is shown when you click on a track by the player bar showing the selected track, the button in the centre changes to a pause icon, the track counter goes to zero and starts counting up. This should happen within a second. When you change volume that is instantaneous. How much RAM does your Pi have? |
Beta Was this translation helpful? Give feedback.
-
It should work ok then unless you are running a lot of other addons. MA needs around 2GB RAM. Looking bck at another of your comments. Players are selected as you say by popping out the player menu. You then click on the one you want. The name of that player will then appear in the player bar so you know which one you are controlling. When you have multiple players playing simultaneously then you can see what they are all doing on the home screen and pause and resume them there. Why you got that error with Deezer I am not sure as I don't use that provider. Try sending some radio browser streams, that should work fine. Note there will be a slight delay which is outside of MA's control as the station has to start their stream after the request. |
Beta Was this translation helpful? Give feedback.
-
Thanks @OzGav much appreciated. I will give it a try. On a side note, unfortunately my plan to use a Chromecast as audio receiver failed. I bought an audio extractor (HDMI => SPDIF) that arrived today so I can plug it into my speakers (with bt / spdif / rca input). However, it still requires a TV to be connected. |
Beta Was this translation helpful? Give feedback.
-
If you have a spare RPi (any version) you can run PiCorePlayer on it and that can connect via BT or the 3.5mm stereo jack. There are also ESP32 options. Yes if you ever find a CC audio in the $1 bin somewhere then grab it! |
Beta Was this translation helpful? Give feedback.
-
I use CC videos with an active powered hdmi audio splitter by lack of CC audios. The CC can't drive passive splitters. They don't need a TV set. I think this is only for passive adapters as the TV provides the power |
Beta Was this translation helpful? Give feedback.
-
I just had a very similar issue. Music was stopped, casting the MA random 100 playlist. Then I noticed probably the same issue: pressing play did not resume the playlist. It just jumped to the next track and remained in stopped state. No errors logged again. I 'solved' it by clearing the queue and start a new one Also running RPi 4, normally no issues like this. |
Beta Was this translation helpful? Give feedback.
-
I have got an active splitter from Temu, but it only works when there's a TV connected to the output @erkr |
Beta Was this translation helpful? Give feedback.
-
@roldengarm |
Beta Was this translation helpful? Give feedback.
-
I;m just converting this to a discussion as we seem to have veered away from this being a MA issue. I am assuming you are running the docker container correctly now and that is all fine. For all your testing I would suggest you use the Chromecast. If that is all working fine then we can look at providing more advice about a solution for your speakers. If anything isn't working then let us know and we will tackle one problem at a time. |
Beta Was this translation helpful? Give feedback.
If you want to come to the lounge on Discord there has just been a bit of discussion about that and one of the guys has been asked to write uo something that answers your question. That extended response won't be done until the end of the month but you should be able to find some useful info there now.
P.S. You have the HDMI output from the RPi as well