Skip to content

MWPW-204695: Fix video play/pause interaction - #6527

Open
zagi25 wants to merge 1 commit into
stagefrom
mwpw-204695-video-fix
Open

MWPW-204695: Fix video play/pause interaction#6527
zagi25 wants to merge 1 commit into
stagefrom
mwpw-204695-video-fix

Conversation

@zagi25

@zagi25 zagi25 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Problem — Pause button doesn't stick (desktop). Clicking pause paused the video, but on every loop the canplay handler called play() again, ignoring the user's pause. Fix: made canplay (and applyRotation) skip play when data-user-paused is set. It seems that this only happens for videos that are on loop without viewportplay attribute.

Resolves: MWPW-204695

Reproduce: Easiest and most reliable way to reproduce is to throttle network to slow 4g/3g, reload a page, scroll down to the video, wait for video to start playing, pause it and wait for a few seconds and video will play again even thought it was paused manually.

Test URLs:

@zagi25
zagi25 requested a review from a team August 20, 2026 10:15
@aem-code-sync

aem-code-sync Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@SilviuLCF
SilviuLCF self-requested a review August 20, 2026 11:44
@SilviuLCF SilviuLCF self-assigned this Aug 20, 2026

@SilviuLCF SilviuLCF left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants