Skip to content

Video autoplay is not working in Safari and Chrome

So you have tried adding autopay and playsinline codes to your video tags but still, it’s not auto-playing?

So here’s the fix, all you have to put mute attribute to the video tag. As recently browsers removed the functionality of autoplay videos with sound.

<video class="img-fluid" width="450" height="450" playsinline autoplay
 muted poster="img/poster.png">
   <source src="assets/video/hero.webm" type="video/webm">
   <source src="assets/video/hero.mp4" type="video/mp4">
   Your browser does not support the video tag.

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.