• Safari won’t autoplay a video unless it is muted and we have no option to do that. Please can you add the option?

    In the meantime, I have used the following filter function to add muted property to the video output.

    function cms_video_filter( $output, $atts, $video, $post_id, $library ) {

    $output = str_replace( ‘<video’, ‘<video muted’, $output );

    return $output;
    }

    add_filter( ‘wp_video_shortcode’, ‘cms_video_filter’, 20, 5 );

Viewing 3 replies - 1 through 3 (of 3 total)
  • kostastrak

    (@kostastrak)

    hi, were exactly did you put that filter? i have the same problem i use video feuter plus, i put video thumbnails, bat every time i visit my site all videos play in the backround. i mean the sound.. so were can i put the filter you use?
    thanks

    Thread Starter sanerdesign

    (@sanerdesign)

    It’s a custom filter so you can just add it in your theme functions.php file

    kostastrak

    (@kostastrak)

    Thanks you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘We need option to mute videos so that autoplay works in safari’ is closed to new replies.