Emulate a Spotify Connect device #419
Replies: 42 comments 146 replies
-
I'm not sure, but this seems a totally another concept to me, as MA controls what is played to existing players. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this feature requests, it’s moved to the discussions. |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature request |
Beta Was this translation helpful? Give feedback.
-
What this component could do, is to emulate a Spotify Connect device (just like the addon does for RPi's local soundcard) for each media player configured in MA. That would allow us to extend functionality of any media player with Spotify Connect, even ones not directly supported by Spotify. |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature request |
Beta Was this translation helpful? Give feedback.
-
Any news on this? I'm thinking about switching from LMS to MA, but being able to control playback from the spotify app is a major part of the high WAF |
Beta Was this translation helpful? Give feedback.
-
+1 would love to see this now after 2.0 |
Beta Was this translation helpful? Give feedback.
-
This last piece of the puzzle would completely let me yank all of my Sonos out today. Airplay would be a great bonus, but I can live without that. Can't wait to see this get implemented! |
Beta Was this translation helpful? Give feedback.
-
Awesome. Totally agree with this. I've been running LMS and picoreplayer but the Spotify Connect aspect falls off the network at times. This feature would let me drop down from several Pi's to squeezlites and make my wife very happy lol. |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature please. To be able to create speaker groups in MA that are individually addressable directly from Spotify would be AMAZING this way I would not have to use Google's jank@ss speaker group feature that works like 12% of the time. |
Beta Was this translation helpful? Give feedback.
-
This would be amazing! |
Beta Was this translation helpful? Give feedback.
-
I'm confused as to how the playback is handled currently because it seems to circumvent the "only one stream" limit of the account... I was expecting to find the spotify app or web ui show me what was currently playing but it didn't and it allows me to listen to two separate things at the same time? |
Beta Was this translation helpful? Give feedback.
-
Tidal connect works Like Spotify Connect - so it would be great If Tidal Connect was also supported! |
Beta Was this translation helpful? Give feedback.
-
With the official Spotify Auth flow now in place, I'm hoping this is now close? Fingers crossed, thank you Home Assistant Team! <3 |
Beta Was this translation helpful? Give feedback.
-
+1 for this! Would solve issues I have with MA's queuing system working differently than Spotify's (namely being able to add an album sequentially to the top of the queue while in radio or 'don't stop the music' mode). |
Beta Was this translation helpful? Give feedback.
-
Spotify Connect in early beta form is available in 2.4.0b14+ |
Beta Was this translation helpful? Give feedback.
-
@OzGav, thanks for this! I wasn't able to make it work. I have three different AirPlay speakers and I cannot play audio through them anymore (with or without Spotify Connect plugin) — something must have broken. I tried initiating playback from MA and from Spotify (it pretends to be playing when initiated from Spotify and MA sees the track but no audio comes out). I deleted the Spotify Connect plug-ins and still no audio when I try to play through AirPlay (which worked fine prior to beta 14). The logs don't seem to give away the problem:
|
Beta Was this translation helpful? Give feedback.
-
@OzGav thanks a lot, it works great! However, there are no metadata on dashboard now, would it be possible to fix that? |
Beta Was this translation helpful? Give feedback.
-
I' moving from SpotConnect/spotraop (https://github.com/philippe44/SpotConnect) which is quite snappy but doesn't seem to be maintained anymore. It might be a source for inspiration. |
Beta Was this translation helpful? Give feedback.
-
Something broke in 2.4.0b17. Controlling the Spotify Connect player from MA works without problems, but Spotify itself is bugged out. If the player is selected in Spotify, playing anything shows it's playing, but no sound is hearable. I couldn't see anything relevant in the logs other than this warning:
|
Beta Was this translation helpful? Give feedback.
-
It seems that there is a lot of expectations around Spotify Connect where people see to think that MA can be the replacement of the existing solutions. It is not and will never be. Music Assistant is in its core a library manager/music catalog on its own that can output to many different device/speaker types. It is never designed to be a spotify connect target or forwarder or whatever you are all looking for. SPOTIFY CONNECT IS NOT AND WILL NEVER BE THE MAIN FOCUS FOR THIS PROJECT !!! So, expectations set very clear. Spotify connect will be another "source of audio" for Music Assistant for INCIDENTAL listening, just like a record player, or some other aux source. The entire core of MA is not built towards some of the things I see mentioned in this thread, most important because we are universal to so many player types. If you only have to forward a single stream to airplay players, things are easy and can be super low latency (well as low as airplay can get) - we cant do that because we need to account for buffers. For instance a Chromecast player requires at least 30 seconds of buffer before it even begins to output any audio. The way I see it is that this will be useful for the occasion where you want to quickly pop out your phone to seek that one song and stream it to one of your MA players (which can be anything, also groups) but the main control will still be MA. If that is not what you are seeking for, move on. MA is not for you. What we will do is try to find a way to make the latency as less as possible while keeping our flexibility. Currently we forward the entire audio stream to players but that means that the any controls from spotify app will also be delayed by the amount of buffer in the player, currently about 30 seconds. Maybe we can get that down to about 10 seconds. Or some other idea is to just start the playback from spotify app and then fill the MA queue the regular way, making the spotify app basically just a UI for MA. What I wanted to say is what we have now in beta is a very first iteration on which we will slowly but steadily make improvements but dont set the expectations too high already, this will take some time. And at the same time I guess I want to say that MA is so much more than just a stupid spotify connect router, that is not the goal of the project and if you are only look for that, I think you will have other options. Also, if you truly only want spotify connect and nothing more, consider buying hardware hardware with actual spootify connect support. That experience is never going to be beaten by some software based workaround. Just my 2 cents so everybody has the right expectations ;-) |
Beta Was this translation helpful? Give feedback.
-
I think that initiating a playback from MA (like you normally would today) and then being able to control playback from Spotify App is exactly what a lot of people are looking for ;) |
Beta Was this translation helpful? Give feedback.
-
I like how this is implemented in the plugin beta. Simply setting up spotify connect endpoints in the MA interface, linking them to players or groups. In my deployments at home and at the office. This was my high hope, no more no less. So far, I can set it up with no errors, spotify connects and plays, the track is showing in the designated player inside MA and logging is all green. However, no sound is coming out of the speakers. Let me know if I can provide any more context, I did not find an issues tracker in the server repo. |
Beta Was this translation helpful? Give feedback.
-
Thank you for implementing Spotify Connect in this beta. I see the same picture as described above. I can set it up without errors, spotify connects and plays, the track is displayed in the designated player in MA. Also for me, no sound is coming out of the speakers. But I see some errors in the log of the docker container where my music assistant server is running.
provided the full log in attachement, Hope this is helpful for the developers. Cheers, |
Beta Was this translation helpful? Give feedback.
-
I tried to do some naive investigations and found this commit from 2 weeks ago:
Since if the |
Beta Was this translation helpful? Give feedback.
-
Beta 29 has improvements to Spotify Connect. Please give it a try. |
Beta Was this translation helpful? Give feedback.
-
Hi! Seems like it's broken in the latest beta. If i read the logs correctly, The speakers doesn't receive an audio-stream at all. This is when i try connecting it to a sonos speaker:
This is when i connect it to an Arplay-speaker:
If i don't restart the Music-assistant completely after the first try, i get no error at all, no sound, no playback updates. Connecting the app to spotify connect stops working aswell. |
Beta Was this translation helpful? Give feedback.
-
Am I getting something wrong here? When I add the Spotify Connect Plugin provider for a speaker/group, and then open the app on my phone, I should be having that device available as a spotify connect device, right? I'm not seeing anything. I am on the same network as MASS, the Spotify provider is working as it should, and unrelated, I have a librespot instance running alongside snapcast, and it works even outside the same network. |
Beta Was this translation helpful? Give feedback.
-
Hi! Just discovered and configured the Spotify Connect plugin for my Yamaha AV receiver that works great with MA via Airplay. I have a free Spotify account, the MA player is correctly discovered in the Spotify app on the phone, but I cannot select it as player since it's grayed out stating that a Premium Account is needed to play on the "device". Since I didn't find anything in the documentation, can someone confirm that a premium account is required also for the Spotify Connect plugin? |
Beta Was this translation helpful? Give feedback.
-
QuestionAnyone run into a bug where Spotify will establish a connection to the Music Assistant-based Spotify Connect player, but it won't play any music? My current (previous?) setupI currently run a Snapcast Server external to Music Assistant as my setup predates the existence of Music Assistant altogether. Here is my configuration:
The above loosely translates to the following logic:
Trial of Music Assistant's Spotify Connect plugin
With the above setup, my clients can see the Spotify Connect target, and when I click on it, they can establish a connection to it. Spotify does select it as a target and sits idle waiting for a song to be selected. Once I select a song, every song sits at 0s, and nothing will buffer despite all communication from Music Assistant being permitted to traverse where it so pleases. I'm not sure what to make of this, so I had to revert back to my standalone setup with a dedicated LXC container for Snapcast Server. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Have MA configured players show up in Spotify apps as "Speakers" (Spotify Connect devices).
Beta Was this translation helpful? Give feedback.
All reactions