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 videojs amp-video-iframe intergration on ios #39894

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

powerivq
Copy link
Contributor

@powerivq powerivq commented Mar 13, 2024

Fixes #39676

For unknown reason, iOS refuses to send canplay event when the video player is in ready state.

https://html.spec.whatwg.org/multipage/media.html#mediaevents This appears to be contrary to the spec, which state that it should do so when readyState becomes >=3, which was AMP's implementation.

Therefore, we have to apply this nasty patch to make it work. Since platform service is not available here, I do user agent check directly instead of using isIos() function.

@powerivq powerivq merged commit dad25b2 into ampproject:main Mar 13, 2024
52 checks passed
@powerivq powerivq deleted the videojs branch March 13, 2024 23:16
eszponder pushed a commit to krzysztofequativ/amphtml that referenced this pull request Apr 22, 2024
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.

Tag <amp-video-iframe> not works on Safari and Chrome in iOS (version 12.3 or higher)
3 participants