JSFiddle - React, Tailwind, and code Playground
by Vipin Patil
HTML
<video id="myVideo" autoplay src="https://devashish-ui.netlify.app/video/home/banner2.mp4">
JavaScript
document.getElementById('myVideo').addEventListener('ended',myHandler,false);
function myHandler(e) {
console.log('ended');
setTimeout(function(){
document.getElementById('myVideo').play();
}, 1);
}