Lyrics that keep up when you seek
A single shared clock drives the seek bar and the lyric view so they never disagree.
A lyric view feels wrong the moment it falls out of step with the song. The usual cause is two parts of the app each keeping their own idea of the current time.
One clock
Zoyra has one playback clock. The seek bar, the mini player and the lyric view all read from it. When you drag the bar, the clock jumps first and everything else follows, so the highlighted line updates the instant you let go.
A seek bar that responds to touch
The bar listens to touch directly instead of waiting for the player. While your finger is down, the bar shows where you are about to go. When you lift, the player seeks to that point. The same bar is used on the player, the queue and the lyrics screens, so it behaves the same everywhere.
Finding the current line
With the time known, picking the line is a search through the sorted timestamps for the last one at or before the current time. Moving forward or backward by any amount is just another search, so it is always correct.
- No drift: lines come from the clock, not from a timer that counts on its own.
- Smooth scroll: the view eases to the new line instead of snapping.
- Karaoke mode reads the same clock, so it stays in step too.