Autoplay video with loop using jquery

Autoplay video with loop using jquery

if (jQuery('div').length !== 0) {
    jQuery('div').find('video').prop('muted', true);
    jQuery("div").find('video').attr('loop', 'loop');
    jQuery("div").find('video').attr('playsInline', '');
    jQuery("div").each(function() {
        jQuery(this).find('video').get(0).play();
    });
    jQuery('div').find('video').removeAttr('controls');
}
Freelance Website Designer and Developer

Hire Our Website
Designer and Developer

Recent Solutions

Freelance Website Designer and Developer
Indoc Web Design

Copyright © 2024 All rights reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram