bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
702 stars 147 forks source link

Q: How to determine what music provider is playing #405

Closed viktorgardart closed 5 years ago

viktorgardart commented 5 years ago

Is there a way I can receive the content provider from whom the music is played from? (See image).

IMG_0022

Villarrealized commented 5 years ago

I’ve wondered that myself, but I haven’t seen anything explicit with the data that Sonos sends when inspecting through wireshark. My guess is they determine the provider based on the song’s uri.

viktorgardart commented 5 years ago

Thanks for the reply!

After some debugging it seems that there's a sid in TrackURI. And that sid can be mapped to the response of ListAvailableServices.