From 420c84d1917c220f63ab395020af817fcb80c230 Mon Sep 17 00:00:00 2001 From: Honey Date: Fri, 26 Jun 2026 17:45:40 +0200 Subject: [PATCH] Revert "feat(web): gapless audio handoff to fix desktop media-tile flicker" This reverts commit 98d7c8426937c4573c11c6847aaf65880510aad4. --- CHANGELOG.md | 2 +- index.html | 1 - src/main.js | 79 ++++++++++++++++++++------------------------ src/player/player.js | 58 +++++++------------------------- 4 files changed, 48 insertions(+), 92 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 324f373..661b24c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,7 +74,7 @@ Versioning: two-part `MAJOR.MINOR` — each release bumps the minor (features an - **Android** — Offline detail screen flashed open then immediately returned: its initial empty state (before Room emitted) was mistaken for "deleted". Now shows a brief spinner until loaded, and only leaves when the last song is actually removed - **Android** — Lyrics autoscroll: rewrote centering to use the active line's *measured* position in a `LazyColumn` instead of a fixed line-height estimate. Eliminates the stutter and the downward drift on wrapped (multi-line) lyrics — the active line now tracks smoothly and sits at a natural ~40 %-from-top reading anchor - **Web** — Home now refreshes on an explicit Home click (matching Android): the album rows re-fetch and the random row re-randomizes instead of serving the 5-minute cache. Back/forward navigation still keeps the cached state -- **Web (PWA)** — OS media tile no longer disappears/reappears when skipping tracks on desktop. Two fixes: (1) the Media Session metadata is mutated in place instead of replaced with a new `MediaMetadata` each track, and (2) gapless handoff — playback is handed to a second, pre-buffered `