html video autoplay
snippet in html

html video autoplay

user3603

<!--
Video autoplay in html is a boolean attribute, which plays the video automatically when the video gets loaded on web page.
-->

Syntax:
<video autoplay>
  
Example:
<video controls autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
</video>
  
<!--
I hope it will help you.
Namaste
Stay Safe Stay Home
-->

html video tag autoplay not working

user3266

<script type="text/javascript">
	window.onload= function(){
	var x = document.getElementById("home-video").play();
	}