Casting to Sonos is not stopped when another source playing on the speakers

App version

Production

Issue description

When I’m playing on my Stereo Pair of Sonos Five or on my single Symfonisk Lamp speaker and turn music from another source like Spotify Connect (from Spotify app), Symfonium doesn’t handle it correctly. Casting is not dropped. current position is lost. The app also shows that the playing is active right now. Sometimes even a current position is changing (although it is not real)

Device type

Phone

Media provider

Navidrome

Steps to reproduce

  1. Start casting from Symfonium to Sonos speakers

  2. Without stopping casting manually, start playing music from another source on the same Sonos speakers. For example, using Spotify Connect or Line-In

  3. You see that casting from Symfonium is not stopped, current place in the song moved (sometimes to the beginning, sometimes just to another place, sometimes just continue moving)

Additional information

I would expect here to stop casting entirely. Or at least, not changing the position in the song

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

zikasak-logs-sonos-pause

As the duplicates enable the option stop casting on external changes on the provider settings.

didn’t help. Behaviour is completely the same

be sure to stop casting then cast again after the change and proper proper logs with the option on.

activated, fully restarted the application. Didn’t help.

logs: zikasak-logs-sonos-pause-proper

Hum ok there’s no stopped status before their load of next item, will try another workaround for this case on the non risky parts.