HTML Audio/Video DOM networkState Property
Example
var vid = document.getElementById("myVideo");
function myFunction() {
alert(vid.networkState);
}
Meaning
The networkState property returns the current network state of the audio/video.
Standard Syntax
audio|video.networkState
Advertisement
Return Value
| Type | Description |
|---|---|
| number | Returns the current network state of the audio/video element:
|