Is there a way to make a video play automatically and then redirect to another page once it's finished, without any user interaction?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>eve_</title>
<link rel="icon" rel="preload" href="images/evecircle.png" />
<style>
#video {
margin-left:-10px;
margin-top:-10px;
}
</style>
</head>
<body>
<script src="text/javascript">
function playVideo(){
var video = document.getElementById('video');
video.play();
video.addEventListener('ended',function(){
location.replace('https://example.com/redirect'),
});
}
</script>
<video controls id="video" width="1300px" height="auto" preload="auto" autoplay="autoplay">
<source src="images/shorteve.mp4" type="video/mp4"/>
</video>
</body>
</html>