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

Browsers won't allow autoplay #79

Closed
jamiesal opened this issue Mar 24, 2021 · 2 comments
Closed

Browsers won't allow autoplay #79

jamiesal opened this issue Mar 24, 2021 · 2 comments

Comments

@jamiesal
Copy link

iOS devices and perhaps Safari on Macs won't begin playing the video after clicking on the thumbnail. Rather, the iframe replaces the img tag and the user must tap or click the play button a second time. This is not an ideal user experience. My assumption is that the browser is preventing injected iframe elements from autoplaying with sound turned on. Not sure if there is any way around this or if we should simply use "loading=lazy" on our youtube embeds instead of this program.

@kevinfarrugia
Copy link

I think this duplicates #6 as the problem is on most mobile browsers.

@paulirish
Copy link
Owner

dupe of #6

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

No branches or pull requests

3 participants