Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play a favorite #9

Open
denglend opened this issue Feb 16, 2018 · 2 comments
Open

Play a favorite #9

denglend opened this issue Feb 16, 2018 · 2 comments

Comments

@denglend
Copy link

Great library. I easily was able to play podcasts and URLs, as well as control volume, etc. from an esp32.

I'm now looking to play items saved as "favorites". i.e. the stations and etc that have been saved to be available one-touch via the sonos controller app. I've seen references to doing this in other sonos libraries, but am not (yet?) familiar enough with the details of sonos's upnp structure to know if a function to do this is present in your library and I don't know the right terminology. Or if it's not present currently and I'll have to give a go at coding it in.

Any pointers on whether this is a feature request vs a documentation request are much appreciated!

@denglend
Copy link
Author

For what it's worth, I still don't understand enough about the protocol Sonos uses to do this the "right" way, but I was able to successfully play favorites using this library by calling:

setAVTransportURI(speakerIP,"",uri,"<CurrentURIMetaData>","</CurrentURIMetaData>",meta);

Where uri and meta were captured by dumping the contents of requests generated by a nodejs library which is capable of scanning for the list of favorites and playing them by name.

@calania
Copy link

calania commented Jun 2, 2021

Hello, I know that this is a very old post but I am trying to switch from using the "sonos http api" to instead using this library. For me it is crucial to be able to select and play my favourites and it is what has been stoping me from making the switch before. I just wonder if you happen to remember how you got the uri and meta using the "Sonos http api"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants