Hello everyone,
after spending loads of time without any success, I am kindly asking for the help and expertise of our community.
Can someone provide me please a code or any kind of suggestion on how to autoplay a video background on mobile?
Right now there is always a play button showing up on the mobile, where I would like it simply to "autoplay" and only play it "once" (no loop) just as on desktop version.
Here is the code I am using in the Code Injection section in the footer field, to prevent the video background of "looping":
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
setTimeout( function() {
$('video').removeAttr('loop');
}, 5000);
});
</script>
Thanks a lot in advance for any advice.