jQuery(document).ready(function() { if (typeof(wrap_autoplay) === 'undefined') { wrap_autoplay = true; document.querySelectorAll(".plugin_wrap.wrap_autoplay video").forEach(function(video) { video.setAttribute("muted", ""); video.setAttribute("autoplay", ""); video.setAttribute("loop", ""); video.setAttribute("playsinline", ""); video.setAttribute("preload", "auto"); video.muted = true; video.volume = 0; video.play(); }); } });