Skip to content

Conversation

@Florent-Bouisset
Copy link
Collaborator

@Florent-Bouisset Florent-Bouisset commented Mar 13, 2024

equivalent of #1404 for v4

This didn't cause a bug in v4 but for safety and code robustness I propose to back-port the fix from the v3 to the v4.

When seeking on the current position the video element trigger the
"seeking" event, but the seeking attribute of the video element itself
is either not updated or is already reset to `false` at the moment the
event "seeking" is received.

video.onseeking = () => {
    // video.seeking attribute can be false
    console.log("on seeking!", video.seeking)
}

Due to a recent change we are waiting for the attribute "video.seeking"
to be true. Checking that the event type correspond to a seeking event
fix the issue.
@Florent-Bouisset Florent-Bouisset changed the title fix(safari): autoplay was not working on Safari fix(safari): check seeking event type in addition to the videoElement state "seeking" Mar 13, 2024
@peaBerberian peaBerberian merged commit 269aa5b into dev Mar 14, 2024
@peaBerberian peaBerberian added this to the 4.1.0 milestone Mar 14, 2024
@peaBerberian peaBerberian deleted the fix/safari-autoplay-v4 branch July 26, 2024 16:38
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.

3 participants