-
AuthorPosts
-
July 11, 2018 at 1:39 pm #984219
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,
ThorstenJuly 12, 2018 at 5:23 am #984477Hey 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,
IsmaelJuly 12, 2018 at 8:05 am #984556Hello Ismael,
that wasn’t the solution I was expecting. Why does the theme autoplay the video/audio at all? Why is that necessary?
Best,
ThorstenJuly 12, 2018 at 1:11 pm #984703Hi,
How did you add the video? Please provide the login credentials in the private field. We would like to test it.
Best regards,
IsmaelJuly 12, 2018 at 3:49 pm #984802Like I said it’s a mp4 video refered from the media library via hard link.
July 13, 2018 at 6:58 am #984975Hi,
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,
RikardJuly 13, 2018 at 12:04 pm #985119This reply has been marked as private.July 16, 2018 at 6:05 am #985835Hi,
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,
IsmaelJuly 16, 2018 at 10:52 am #985890Thanks for the tipp, Ismael. Video shouldn’t be playing by default. This option is not very user friendly. You can close this thread.
Best,
ThorstenJuly 17, 2018 at 2:23 am #986177 -
AuthorPosts
- You must be logged in to reply to this topic.
