onwaiting Event in JavaScript
onwaiting Event in JavaScript
The onwaiting event is used to trigger when the video stops because it needs to buffer the next frame. It is widely used with video but we can use it will audio as well.
Syntax:-
Its syntax is:- <element onwaiting="my_script"> OR object.onwaiting= function(){my_script} OR object.addEventListener("waiting", my_script)