fix(player): route notification next/prev to Sonos while casting — #171 #111
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to PR #110 / release v2026.07.15. On-device verification confirmed the cursor sync + no-flicker works, but the notification/lock-screen next+prev buttons were dead during a cast (play/pause worked).
Root cause: the system media controls issue
COMMAND_SEEK_TO_NEXT/COMMAND_SEEK_TO_PREVIOUS→Player.seekToNext()/seekToPrevious(), which are distinct from theseekTo*MediaItem()methods the in-app buttons call (and which were already routed to Sonos). The former were un-overridden, soForwardingPlayerforwarded them to the paused local delegate — the identity poll then re-synced the cursor back, so the buttons read as dead.Fix: override
seekToNext()/seekToPrevious()to delegate to the media-item variants (full Sonos path) when a UPnP route is engaged; plain local playback keeps the default behaviour. Completes milestone #171 Step 3 (#1606 / #606). CI green ondev(run 2391).🤖 Generated with Claude Code