Aleš Sýkora / January 10, 2023 / 0 comments

FIX video background autoplay in iOS/MAC low power mode

Post summary: Usable with Oxygen builder, Webflow and others.

Usable with Oxygen builder, Webflow and others.

(function($){
//PLAYS VIDEO IN LOW POWER MODE
$('video').addClass('inlinevideo');
$('body').on('click touchstart', function ()  {var videoElement = document.getElementsByClassName('inlinevideo');if (videoElement.playing) {} else {$('.inlinevideo').trigger('play');}});

})(jQuery);

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts