Skip to content

Fix video playback seek storm (~1 fps on phones)#35

Merged
AlexNly merged 1 commit into
mainfrom
fix/video-seek-storm
Jul 16, 2026
Merged

Fix video playback seek storm (~1 fps on phones)#35
AlexNly merged 1 commit into
mainfrom
fix/video-seek-storm

Conversation

@AlexNly

@AlexNly AlexNly commented Jul 16, 2026

Copy link
Copy Markdown
Owner

videoSeek ran every animation frame during playback; each hard seek stalls the video past the 0.25s drift threshold again, cascading into a permanent seek storm. Phones show ~1 fps.

Now playback never hard-seeks on small drift: playbackRate is nudged (max 15%) to converge, hard seek only past 1s drift. Negative offsets hold the first frame until footage begins instead of clamping ahead.

Measured (headless Chromium, shot 000086): before = seek per frame; after = 1 seek total, rate settles at 1.00, video tracks chart exactly.

@AlexNly
AlexNly merged commit e787ec5 into main Jul 16, 2026
3 checks passed
@AlexNly
AlexNly deleted the fix/video-seek-storm branch July 16, 2026 21:05
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.

1 participant