geesawra.industries/hydraulophone
An unofficial YouTube Music app for iPhone, iPad, and Mac.
0011 — Lyrics in Now Playing
Date: 2026-09-24
Decision and delivery plan
Lyrics replace the main cover presentation in Now Playing. Playback transport, seeking, queue access, and audio routing remain in place. A small cover button beside the track identity returns to artwork. A single persistent cover moves and shrinks between layout anchors in a 0.28-second transition; its image request stays at the full cover resolution so the transition cannot reload a thumbnail or crossfade between separate images. The player remains a sheet with swipe-to-dismiss and a VoiceOver escape action; there is no redundant close button. Native Liquid Glass controls are used on iOS 26 and later, with material fallbacks on the iOS 17 deployment target.
The vertical slice has four boundaries:
- An authenticated lyrics service tries BetterLyrics TTML, then a bounded
LRCLIB lookup, then InnerTube
next→ lyricsbrowsefor static text. Any synchronized result wins; YouTube Music plain text wins over earlier plain results, which remain available if its response is missing or fails. All return a stableSongLyricsvalue; protocol details remain in Core. See InnerTube evidence, BetterLyrics TTML, LRCLIB matching and privacy, and the Metrolist comparison. - A cancellable main-actor view model loads on demand, distinguishes missing lyrics from failure, and rejects results for a replaced song or session.
- The player passes its existing media position to the lyrics view. Timed lines highlight and scroll into view; static lines always scroll manually.
- Synthetic fixtures exercise both presentations without credentials or live traffic. Core and state tests verify boundaries and cancellation; simulator UI tests verify transitions, manual browsing, and larger text.
Interaction and accessibility
Synchronized lyrics are line-based when the source supplies only line cues; BetterLyrics can supply word timings, which we do not fabricate. Cue end points leave instrumental gaps unhighlighted. Tapping a timed line seeks only when the playback layer reports seeking available. Dragging pauses automatic following and exposes Follow Along. Pauses and seeks use the actual playback clock, including an accepted pending seek, without a separate UI timer. Adjacent cues scroll with a 0.28-second ease-out. Seeks and resumed following land directly, and instrumental gaps do not restart a scroll to the same line. Rows render independently; inactive rows remain unchanged on playback ticks. Word colors update directly, without scaling rows or layering text animations over the scroll. Small edge overlays preserve the fade without masking the whole scrolling surface.
Manual scrolling stays manual until Follow Along is selected. Switching back to the cover does not start another request for already loaded lyrics. Track changes reset following and discard the old lyrics. Nothing is persisted to disk. Opening lyrics may send the current track title, artist, album, and duration to BetterLyrics and LRCLIB; no Google credentials, visitor data, or user identifiers leave the InnerTube transport. The displayed attribution identifies the lyric source. Sign-out/session replacement recreates the panel state. Offline Only uses the existing network gate and provides a specific recovery message.
Dynamic Type wraps lines without truncating lyrics. Secondary metadata and transport labels are capped at XXXL while lyrics retain all accessibility sizes; the navigation-bar lyrics button remains reachable without scrolling the cover. VoiceOver can read and scroll without automatic scrolling moving its focus. Reduced Motion removes cover movement and animated following and uses a short content crossfade. Loading, missing lyrics, connection/authentication errors, and retry are explicit states.
Acceptance
See lyrics validation brief and its recorded results. The undocumented renderer/profile remains the main maintenance risk. A source change should update the narrow parser plus synthetic fixtures and protocol note; it must not introduce a second playback clock or network work in views.