0

Add “autoplay-video” class to video module and after that add below script to theme option

jQuery(document).ready(function() {
    if (jQuery('.autoplay-video .et_pb_video_box').length !== 0) {
        jQuery('.autoplay-video .et_pb_video_box').find('video').prop('muted', true);
        jQuery(".autoplay-video .et_pb_video_box").find('video').attr('loop', 'loop');
        jQuery(".autoplay-video .et_pb_video_box").find('video').attr('playsInline', '');
        jQuery(".autoplay-video .et_pb_video_box").each(function() {
            jQuery(this).find('video').get(0).play();
        });
          jQuery('.autoplay-video .et_pb_video_box').find('video').removeAttr('controls');
     }
});

Jagdish Sarma Asked question October 17, 2022
Add a Comment