2
I developed a website for a company and this requested a video just below the menu, and that this video be played automatically, until then nothing else used the following code:
<video preload="auto" autoplay="true" loop style="height: 700px;" >
<!--<source src="assets/video/entrada.mp4" type="video/mp4">-->
<source src="assets/video/enter.mp4" type="video/mp4">
Seu navegador não suporta HTML5.
</video>
Except that something happened in this code in the browsers Firefox, Edge, and Opera worked well the automatic playback, but in google Chrome, which is the most used, no! So my beg for help how do I play this video automatically in Chrome already tried also via iframe as in the code below:
<iframe width="1520" height="700" src="video.html" frameborder="0" allowfullscreen ></iframe>
Try to put in just
autoplay
nay use that wayautoplay="true"
. Do a test there to see. I’m not sure if it will work, but it’s worth the test right...– hugocsl
It didn’t work hugocsl, but thanks for the try anyway. I think a Google joke this, I’ll keep looking in case I find something that can help me put there vlw.
– Alex Xavier Rosa
Try to
muted
on the video tag, sometimes without sound enabled it allows autoplay...– hugocsl