0

Background video, for my website, is not playing on iPhone:

<video id="video">
    <source loop="true" id="vid" src="assets/img/watch.mp4" type="video/mp4">
</video>
Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66
  • 2
    Try adding `autoplay` to the video tag. (``) – Leo Oct 03 '21 at 04:38
  • Hi ! Please also have a look at [this answer](https://stackoverflow.com/a/51432655/4698373) and let us know if the `playsinline` or `playsInline` attribute does something. – Philippe Oct 03 '21 at 04:41

1 Answers1

0

use muted and autoplay attribute in video tag

  <video id="video"  muted autoplay>
       <source loop="true" id="vid" 
            src="assets/img/watch.mp4" type="video/mp4">
  </video>