Author is Aleš Sýkora
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);