5

I can't launch an autoplay video on a website on mobile, tapping won't work either.

<video width="270" height="533" id="video" autoplay muted loop>
  <source src="img/Mockup.mp4" type="video/mp4">
</video>

I also tried with

document.getElementById('video').load();

I have no clues how to fix it. Any tips ?

Thanks !

ADyson
  • 57,178
  • 14
  • 51
  • 63
Pickle_Rick
  • 121
  • 1
  • 6

1 Answers1

5

For anyone interested for Ios you have to add playsinline inside your video tag to make it works. See there : HTML5 Video autoplay on iPhone

Cheers !

Pickle_Rick
  • 121
  • 1
  • 6