<head> <script> var video = document.getElementById("myVideo"); video.addEventListener("canplay", function() { setTimeout(function() { video.play(); }, 5000); }); </script> </head> <body> <video id="myVideo" loop autoplay> <source src="video.mp4" type="video/mp4"> </video> </body>