HTML Audio/Video DOM stalled Event
Example
//Accessing the element
var vid = document.getElementById("myVideo");
//Creating a function
vid.onstalled = function() {
alert("The media data is not available");
};
Meaning
The stalled event run when the browser is trying to get media data, but data is not available.
Standard Syntax
HTML:
<element onstalled="myScript">
JavaScript:
object.onstalled=function(){myScript};
JavaScript, using the addEventListener() method::
object.addEventListener("stalled", myScript);
Advertisement