Easy Tutorial
❮ Html Emoji Canvas Imagedata Height ❯

HTML Audio/Video DOM networkState Property

HTML Audio/Video DOM Reference Manual

Example

Get the current network state of the video:


Definition and Usage

The networkState property returns the current network status (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

Return Value

Type Description
Number Represents the current network state of the audio/video element: 0 <br> = NETWORK_EMPTY - The audio/video has not been initialized <br> 1 = NETWORK_IDLE - The audio/video is active and has selected resources, but is not using the network <br> 2 = NETWORK_LOADING - The browser is downloading data <br> 3 = NETWORK_NO_SOURCE - No audio/video source found
❮ Html Emoji Canvas Imagedata Height ❯