fix(media-keys): withdraw paused session on blur, dedup SMTC pushes, sanitize titles, decode Xtream names - #1429
Open
Thunderhawkk wants to merge 1 commit into
Open
Thunderhawkk wants to merge 1 commit into
Thunderhawkk wants to merge 1 commit into
Conversation
…sanitize titles, decode Xtream names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Harbor hijacking OS media keys (Windows SMTC / Linux MPRIS) from other apps. Five files, no refactors:
Why
A paused/background Harbor kept an enabled OS session and re-announced it, so Windows routed Play/Pause to Harbor instead of the active app (Harbor resumed while Spotify paused — same failure class as known Spotify-vs-YouTube reports). Ended playback never cleared the session, leaving dead entries whose keys did nothing. The VLC-style approach (no enabled session while paused-and-unfocused, keep it while playing in background, reclaim on refocus) fits Harbor because playback, background listening, and hotkeys keep working exactly as before — only session advertisement changes.
Verification
Platform Impact
Checklist
vp checkfor the changed files.vp run typecheckafter TypeScript changes.