Execute a script when the media has started playing in HTML?

Use the onplaying attribute to let users know that the audio/ video started playing.

Example

You can try to run the following code to learn how to execute a script when the media has started playing −


   
      
      
   
Updated on: 2020-05-30T22:48:38+05:30

154 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements