Answers for "on video end javascript"

0

html video on end

<!-- Answer to: "video tag html" -->

<video width="320" height="240" controls onended="alert('the vedio has ended')">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

<!-- The <video> tag is used to play videos... obviously -->
Posted by: Guest on July-12-2021
0

javascript detect video end

document.getElementById('myVideoID').addEventListener('ended',function(e){
 	console.log("video has ended");
 },false);
Posted by: Guest on November-04-2021

Browse Popular Code Answers by Language