HTML Audio/Video DOMnetworkStateProperty
HTML Audio/Video DOM Reference Manual
Example
Get the current network status of the video.
myVid=document.getElementById("video1");
alert(myVid.networkState);
alert(myVid.networkState);
Try it Yourself »
Definition and Usage
The networkState property returns the current network state (activity) of the audio/video.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the networkState property.
Note:Internet Explorer 8 and earlier versions do not support this property.
Syntax
audio|video.networkState
Return Value
| Type | Description |
|---|---|
| Number | Represents the current network state of the audio/video element:
|
HTML Audio/Video DOM Reference Manualother extensions