Skip to content

Conversation

@Florent-Bouisset
Copy link
Collaborator

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.

Bug introduces with [06ecb15]
Report as part of #1390

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 in 3.33 fix(safari): check seeking event type in addition to the videoElement state "seeking" Mar 13, 2024
@peaBerberian peaBerberian merged commit 1db5eac into legacy-v3 Mar 14, 2024
@peaBerberian peaBerberian added this to the 3.33.3 milestone Mar 14, 2024
@peaBerberian peaBerberian mentioned this pull request Jun 12, 2024
@peaBerberian peaBerberian deleted the fix/safari-autoplay-3.33 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