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

Autoplay with oembed #553

Open
xf- opened this issue Jul 9, 2021 · 3 comments
Open

Autoplay with oembed #553

xf- opened this issue Jul 9, 2021 · 3 comments

Comments

@xf-
Copy link

xf- commented Jul 9, 2021

I want to embed a video privacy-friendly in a website without loading until somebody presses play. At that moment the iframe source will be set and autoplay will start the video.

@saerdnaer
Copy link
Member

saerdnaer commented Jul 14, 2021

Modern browsers no longer allow video autoplay with sound – there is nothing we can do about that. Sorry.

@xf-
Copy link
Author

xf- commented Jul 14, 2021

@saerdnaer that's not true or not in all cases. I have a working website with up2date firefox and chromium working. Tested in private/incognito windows. Maybe something is different after it isn't started onload.

I use the attribute autoplay true with no source set. onclick the source is set.
https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide#example_allowing_autoplay_from_specific_sources

You are in matrix or IRC? I would like to show you an example.

@saerdnaer
Copy link
Member

Sure you find me [email protected] – but feel free to post code examples here in this thread or open an PR with the necessary changes.

@saerdnaer saerdnaer reopened this Jul 15, 2021
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

2 participants