Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(safari): check seeking event type in addition to the videoElement state "seeking" #1404

Merged
merged 1 commit into from
Mar 14, 2024

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
3 checks passed
@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.

2 participants