aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
3.41k stars 149 forks source link

Sonos support #288

Closed Lau-r-a closed 10 months ago

Lau-r-a commented 10 months ago

Is your feature request related to a problem? Please describe. Currently Sonos speakers don't show up in the device list. Its possible to see what song is currently is played if started from the spotify ui, but there's no controls whatsoever.

Describe the solution you'd like Support for Sonos Devices.

Describe alternatives you've considered Using the spotify ui...

aome510 commented 10 months ago

Did you set up Spotify Connect as in https://github.com/aome510/spotify-player#spotify-connect? It should list all the available devices as the official Spotify app

Lau-r-a commented 10 months ago

I set it up like that. I'm also able to see all the other Spotify Clients but I can't see my two Sonos devices in the list, while they show up in the other clients.

aome510 commented 10 months ago

I set it up like that. I'm also able to see all the other Spotify Clients but I can't see my two Sonos devices in the list, while they show up in the other clients.

What happens if you connect to the sonos device from the official client. Does the same device show up in spotify_player if you call SwitchDevice?

Lau-r-a commented 10 months ago

The sonos speaker shows up in the cli Playback info with it's name when the playback is started elsewhere. But not in the Device list itself.

Screenshot:

grafik
aome510 commented 10 months ago

Well after doing some research, look like Spotify APIs don't provide support for sonos https://github.com/spotify/web-api/issues/1337 and it is common problem for many people. Because of that, there is nothing I can do from spotify_player side.