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

Allow FireFox to play at readystate 2, but protect other browsers #363

Merged

Conversation

karendolan
Copy link
Contributor

This pull prevents a premature play() request on video elements at readystate 2, except for Firefox that is ready to play at ready state 2.

Safari drops from readystate 3 to readystate 2 when it is buffering and cannot play a video. Requesting play() on Safari at readystate 2 causes the video to stall.

Chrome is not impacted by this pull because it moves quickly from readystate 2 to 3 during load. This also appears to be the case for other browsers.

Our site has been using this patch for many months with a diverse (in regards to devices and OS) and remote student body.

@ferserc1 ferserc1 merged commit 7e73750 into polimediaupv:main May 2, 2024
1 of 2 checks passed
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