svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
84 stars 18 forks source link

PlayNotification support for Spotify Connect #199

Closed Glurz closed 4 months ago

Glurz commented 4 months ago

Hi

It's more of a question than a feature request. I'm experimenting with the PlayNotification method. If Sonos is playing music via Spotify Connect protocol, PlayNotification is unable to restore the state before the notification. I.e. it cannot resume the song that was playing before. Is this due to the nature of the Spotify Connect protocol? I.e. if the connection between the controlling device and Sonos has been disconnected by the notification, it cannot be re-established by node-sonos-ts?

Thanks for some insights.

svrooij commented 4 months ago

That is exactly te reason. You might have better luck using the Playnotificationaudioclip in the latest beta version.

It use the native notification support

Glurz commented 4 months ago

Thanks @svrooij, I‘ll try that.