YouTip LogoYouTip

Prop Video Networkstate

# HTML DOM Video networkState Property [![Image 8: Video Object Reference](#) Video Object](#) ## Example Get the current network state of the video: ```javascript var x = document.getElementById("myVideo").networkState; _x_ will output: 1 // The video is active and has selected a resource, but is not using the network [Try it Yourself Β»](#) * * * ## Definition and Usage The networkState property returns the current network state of the audio/video. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The networkState property is supported in all major browsers. **Note:** Internet Explorer 8 and earlier IE versions do not support this property. * * * ## Syntax _videoObject_.networkState ## Return Value | Type | Description | | --- | --- | | Number | Represents the current network state of the audio/video element:
* 0 = NETWORK_EMPTY - Audio/video has not been initialized
* 1 = NETWORK_IDLE - Audio/video is active and has selected a resource, but is not using the network
* 2 = NETWORK_LOADING - The browser is downloading data
* 3 = NETWORK_NO_SOURCE - No audio/video source found | * * Video Object](#)
← Prop Video PausedProp Video Networkstate β†’