Skip to content

fix: Don't auto-resume playback if the user scrubs media#2118

Merged
nikclayton merged 1 commit intopachli:mainfrom
nikclayton:disable-autoplay-after-scrub
Feb 15, 2026
Merged

fix: Don't auto-resume playback if the user scrubs media#2118
nikclayton merged 1 commit intopachli:mainfrom
nikclayton:disable-autoplay-after-scrub

Conversation

@nikclayton
Copy link
Contributor

Previous code was restarting playback whenever the transition had completed and the playback state moved to STATE_READY. This meant actions that switched from/to STATE_READY, like scrubbing through the media, would restart playback when complete.

So pausing the video and scrubbing through the media would restart playback when scrubbing stopped.

Fix this by nulling transitionComplete after it's been used once.

Fixes #2112

Previous code was restarting playback whenever the transition had completed
and the playback state moved to `STATE_READY`. This meant actions that switched
from/to `STATE_READY`, like scrubbing through the media, would restart playback
when complete.

So pausing the video and scrubbing through the media would restart playback when
scrubbing stopped.

Fix this by nulling `transitionComplete` after it's been used once.

Fixes pachli#2112
@nikclayton nikclayton merged commit 3b1e40a into pachli:main Feb 15, 2026
27 checks passed
@nikclayton nikclayton deleted the disable-autoplay-after-scrub branch February 15, 2026 13:21
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.

Make Videoplayer keep its play state when jumping in the timeline

1 participant