Video networkStateProperty
Examples
Get the current network state of the video:
var x = document.getElementById("myVideo").networkState;
xThe output result is:
1 // The video is valid and the resource has been selected; no network is being used
Try it Yourself »
Definition and Usage
The networkState property returns the current network state of the audio/video.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the networkState property.
Note:Internet Explorer 8 and earlier IE versions do not support this property.
Syntax
videoObject.networkState
Return Value
| Type | Description |
|---|---|
| Numeric value |
Indicates the current network state of the audio/video element:
|
Video Object Other Extensions