I have the following code:
Try this:
And put this js after that:
js
window.addEventListener('load', async () => { let video = document.querySelector('video[muted][autoplay]'); try { await video.play(); } catch (err) { video.controls = true; } });