Closed dgmltn closed 4 years ago
You can only play streams with SetAVTransportURI
so that would work for radio stations (or Spotify artist radio). All other stuff has to be added to a queue.
The above issue was already in my head, but I'm not sure about the best solution. Looking for input.
That would give you an option to retrieve the Favorites or the queue. Then you can play those.
I'm coming from node-sonos-http-api and found that listing favorites is a specific "browse" command, but I guess that's not the problem.
But on there you can also tell it to play a favorite based on the name of the favorite. That's nice. In that case you might not even have to give output anywhere, since a user would know the name of his favorite.
This is how it plays a favorite. It handles radio stations as a special case. Makes sense.
This is the first try.
But once you've "GetFavoriteRadioStations" or (how do you enumerate Sonos playlists?), can you give an example of how to replace the queue with one of the playlists you've found?
The documentation of this library wasn't up-to-par. I've made some big improvements to it, see #102
And the resulting documentation on https://svrooij.github.io/sonos2mqtt/ Your question should be answered here
Great update, thanks!
How's the best way to play a playlist or a favorite (with sonos2mqtt)? Is it setAVTransportURI? But then how's the best way to list URI's of favorites/playlists?
Thanks!