Julius-Bendt / homebridge-sonos-player

Apache License 2.0
2 stars 0 forks source link

Improve compatibility with Spotify Connect #7

Open Glurz opened 6 months ago

Glurz commented 6 months ago

If the Spotify-App is used to stream music to a Sonos device, this plugin is currently not able to return to that music stream after the configured track has finished playing.

Julius-Bendt commented 1 week ago

Hi Glurz,

I don't use spotify, so I have a hard time testing this. Have you tried using the notification toggle?

Glurz commented 1 week ago

Hi @Julius-Bendt Yes, the notification toggle is set to true. I see the same issue when I'm streaming a radio station. After the configured track has finished playing, the stream is not resumed.

Julius-Bendt commented 1 week ago

Just to be sure - you're not using airplay, Spotify connect is some builtin spotify function, right?

Glurz commented 1 week ago

It seems Spotify Connect is a protocol on its own. Since you're not a Spotify user, you might be able to reproduce the issue with a radio station played on Sonos. Maybe it's the same issue. After the configured track has finished playing, the "state" switches back to the radio station, but I have to manually push the play button.

Glurz commented 1 week ago

Edit: if have the same issue with a regular song from the queue (not only Spotify Connect or radio stations): after the configured track has finished playing, the previous song is not resumed.