HTML 5 video or audio playlist

Use HTML with JavaScript to add playlist. The onended event fires when the audio/video has reached the end. You can add messages like “Thank you for watching”, “Stay tuned!”, etc

Example

You can try to run the following code to implement the onended attribute −


   
      
      
   

You could load the next clip in the onended event like in the below-given code


Updated on: 2020-06-24T13:41:09+05:30

857 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements