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 must include "muted" #15

Open
ghost opened this issue Dec 19, 2018 · 2 comments
Open

Autoplay must include "muted" #15

ghost opened this issue Dec 19, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2018

The most browsers nowadays forbid autoplay without mute.

I want to show featured videos, which autoplay.
In the settings, I already choose "Loop" and "always autoplay" (I have the german version - captions may differ)

The video IS rendered with autoplay="1", but it MUST include the attribute muted as well to work.

See this example:
http://pauljadam.com/demos/autoplay-loop-muted-controls.html

@ghost
Copy link
Author

ghost commented Dec 19, 2018

This jQuery-snippet will force every video in wordpress to autoplay without sound.
Take this breadcrumb and make the most of it:

$(".wp-video-shortcode").each(function(){if($(this).is("video")){$(this).attr("muted", 1);$(this)[0].play();}})

@alexsweb
Copy link

alexsweb commented Oct 28, 2021

I've added 'muted' => '', in /wp-content/plugins/featured-video-plus/php/class-main.php line 85

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

1 participant