Sitelet https://github.com/hyperaudio/hyperaudio-lite/pull/271
Skip to content

Fix polling after seek during playback - #271

Merged
maboa merged 1 commit into
hyperaudio:mainfrom
happykawayigt:fix/reschedule-poll-after-seek
Jul 26, 2026
Merged

maboa merged 1 commit into
hyperaudio:mainfrom
happykawayigt:fix/reschedule-poll-after-seek

Conversation

@happykawayigt

Copy link
Copy Markdown

Summary

  • reschedule transcript polling after a seek while playback is still running
  • preserve paused-seek behavior without starting a polling loop
  • add a regression test for the stale-timer scenario

Root cause

handleSeeked() updated the visual state but left the timer scheduled from the pre-seek position. Seeking from a long silence into dense speech could therefore leave highlighting frozen until that stale timer fired.

Validation

  • npm run build
  • npm test -- --runInBand (72 tests passed)

Fixes #264

@happykawayigt
happykawayigt marked this pull request as ready for review July 23, 2026 18:50
@maboa
maboa merged commit 55d0637 into hyperaudio:main Jul 26, 2026
maboa added a commit that referenced this pull request Jul 26, 2026
- Highlighting no longer freezes after seeking during playback (#264, #271)
- caption.js never derives negative durations / repairs inverted cues
  (#272, from hyperaudio/hyperaudio-lite-editor#411)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handleSeeked never re-arms the poll timer — highlight freezes for minutes after seeking during playback in a long silence

2 participants