Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Thorsten

    #984477

    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

    #984556

    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

    #984703

    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

    #984802

    Like I said it’s a mp4 video refered from the media library via hard link.

    video mp4

    #984975

    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

    #985119
    This reply has been marked as private.
    #985835

    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

    #985890

    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

    #986177

    Hi,

    Yeah, agree. The Chrome browser has a more strict policy regarding media autoplay so using that browser should prevent the videos from auto playing. And again, if it’s still auto playing, try to mute the tab manually. Sorry for the troubles.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.