librespot-org / librespot-java

The most up-to-date open source Spotify client
Apache License 2.0
380 stars 93 forks source link

Multi speaker icon #432

Open foxy82 opened 2 years ago

foxy82 commented 2 years ago

Is your feature request related to a problem? Please describe. I'd like to use the multi speaker icon for librespot-java.

image

Describe the solution you'd like A way to use the icon above.

Describe alternatives you've considered Using a different icon but I'd really prefer the one above.

devgianlu commented 2 years ago

Try changing the deviceType config value, one of them should be that.

https://github.com/librespot-org/librespot-java/blob/88149a2b55f13db0cd64c30c7f24978c789c02ec/player/src/main/resources/default.toml#L3

foxy82 commented 2 years ago

Sorry coming back to this - I tried them all and none of them represent the icon above.

mbeijen commented 1 year ago

I assume you could go to https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices and log in to your account and try the API call with your own account and see the 'type' for a multiroom setup. I don't have such a setup so I can't help here

foxy82 commented 1 year ago

I assume you could go to https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices and log in to your account and try the API call with your own account and see the 'type' for a multiroom setup. I don't have such a setup so I can't help here

So I tried it - first the groups didn't appear on that API call. So then I started playing a song and that made the group appear but it is also shown as a "Speaker" on the API whilst the UI shows the multi speaker icon:

   {
      "id": "uuid",
      "is_active": true,
      "is_private_session": false,
      "is_restricted": false,
      "name": "Multiroom Alexa Hallway",
      "type": "Speaker",
      "volume_percent": 47
    },

image