Tuesday, January 10, 2023
The Great Tit
Updated: 10. 1. 2023, Added: 10. 1. 2023

FIX video background autoplay in iOS/MAC low power mode

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);
Did I help you? Fuel our WordPress journey
Beep this article to your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram