Hello,
a client of mine has an mp4 background video on his homepage and while editing the homepage in the backend the audio of this video file is always playing. How can you stop this? It’s annoying as hell.
Best,
Thorsten
Hey hyperbrand,
Thank you for using Enfold.
You can mute that particular tab manually.
// https://www.howtogeek.com/231959/how-to-mute-individual-browser-tabs-in-chrome-safari-and-firefox/
Best regards,
Ismael
Hello Ismael,
that wasn’t the solution I was expecting. Why does the theme autoplay the video/audio at all? Why is that necessary?
Best,
Thorsten
Hi,
How did you add the video? Please provide the login credentials in the private field. We would like to test it.
Best regards,
Ismael
Like I said it’s a mp4 video refered from the media library via hard link.
Hi,
Thanks for the screenshot, do you have a link to where we can see the actual problem? Also please provide admin login details in provate so that we can have a look at the backend.
Best regards,
Rikard
Hi,
Thanks for the update.
Remove the mediaelement scripts on the admin page to prevent the video from auto playing.
add_action('wp_enqueue_scripts', 'ava_deregister_mejs', 9999);
function ava_deregister_mejs() {
if(is_admin()) {
wp_deregister_script( 'wp-mediaelement' );
wp_dequeue_script( 'wp-mediaelement' );
wp_dequeue_style( 'wp-mediaelement' );
}
}
Best regards,
Ismael
Thanks for the tipp, Ismael. Video shouldn’t be playing by default. This option is not very user friendly. You can close this thread.
Best,
Thorsten