pilot000 wrote: 
> The group player is named "Wohnzimmer" and contains one SB Touch (named
> "Squeezebox Touch") and one SB Radio (named "Squeezebox Küche").
> The group player itself is neither in another group nor synced with
> another player/group.
> 
> In Spotifiy Connect, the group player appears as "Wohnzimmer" or as
> "Wohnzimmer, Squeezebox Küche & Squeezebox Touch".

I come back to my issue with LMS players in spotify connect API.
For the issue with the changing player names for a group player I made
some workarounds, means I can handle them.
But the issue with players disappearing in Spotify Connect API still
persists.

I've done a lot of tests, have removed and added the players and so on.

To control a device via the spotify connect API, the player must be
availbale in the device list of SC.
https://developer.spotify.com/documentation/web-api/guides/using-connect-web-api/#viewing-active-device-list

If I enable a previously disabled player in LMS settings (doesn't matter
if its a real player or a group plugin player), the player will appear
in SC API.

Code:
--------------------
    {
  "devices": [
  {
  "id": "3b85c6f255a860feefc7afc32a7ac0dd92259cfc",
  "is_active": false,
  "is_private_session": false,
  "is_restricted": false,
  "name": "Squeezebox Küche",
  "type": "Speaker",
  "volume_percent": 50
  },
  {
  "id": "5e8b6dd0ab922da261a2bdc6d810577cb945b309",
  "is_active": false,
  "is_private_session": false,
  "is_restricted": false,
  "name": "Wohnzimmer, Squeezebox Touch & Squeezebox Küche",
  "type": "Speaker",
  "volume_percent": 50
  },
  {
  "id": "ba7d99ac9fef8b737aa5cd75b86ebdae51689c38",
  "is_active": false,
  "is_private_session": false,
  "is_restricted": false,
  "name": "Squeezebox Touch",
  "type": "Speaker",
  "volume_percent": 50
  }
  ]
  }
--------------------


But after a while, the players disappear and are no longer manageable
via SC API.
The only way to reactivate them is to disable and reenable "Spotify
Connect" for thoese players in LMS settings.

Is there a way to send something like keep-alives to spotify when the
players are in stand-by mode?
Or yould there be added an option for each player to refresh
(disable/enable SC) it's state in SC API periodically ?



CentOS7 (x86_64-linux), SqueezebosServer 7.9.2 - usually the latest
nightly build
Squeezebox Touch
3x Squeezebox Radio
1x Squeezebox Boom
1x group player (contains SB Radio & SB Touch)
------------------------------------------------------------------------
pilot000's Profile: http://forums.slimdevices.com/member.php?userid=8315
View this thread: http://forums.slimdevices.com/showthread.php?t=110455

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to