Video networkState property
Example
Get the current network state of the video:
var x = document.getElementById("myVideo").networkState;
x The output result is:
1 // The video is valid and has selected a resource, without using the network
Try it »
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 |
Represents the current network state of the audio/video element: |
The Video object