Add track to the current queue of specified player. You can obtain track uri from /favorites/detailed call. When using Sonos music library (CIFS) and know the path of a song you can construct the uri by using encodeURIComponent. The request will accept:
addtoqueue works with Sonos music library (CIFS) and works partially with Spotify. Added songs from Spotify will display correct album art, but display song id instead of song title.
Feedback on how to fix the song title for Spotify is welcome. There should be a way to specify the metadata in the player.coordinator.addURIToQueue call. But have not found a good way for it yet.
addtoqueue (beta)
Add track to the current queue of specified player. You can obtain track uri from /favorites/detailed call. When using Sonos music library (CIFS) and know the path of a song you can construct the uri by using encodeURIComponent. The request will accept:
Examples:
addtoqueue works with Sonos music library (CIFS) and works partially with Spotify. Added songs from Spotify will display correct album art, but display song id instead of song title.
Example addtoqueue response:
Feedback on how to fix the song title for Spotify is welcome. There should be a way to specify the metadata in the player.coordinator.addURIToQueue call. But have not found a good way for it yet.