Easy Tutorial
❮ Jsref Regexp Newline Jsref Big ❯

networkState Property

Audio Object

Example

Get the current network state of the audio:

x output value is:


Definition and Usage

The networkState property returns the current network state of the audio.


Browser Support

All major browsers support the networkState property.

Note: Internet Explorer 8 or earlier versions do not support this property.


Syntax

Return Value

Type Description
Number Represents the current network state of the audio element: 0 = NETWORK_EMPTY - The audio has not been initialized<br> 1 = NETWORK_IDLE - The audio is active and has selected its resource but is not using the network<br> 2 = NETWORK_LOADING - The browser is downloading data<br> 3 = NETWORK_NO_SOURCE - No audio source found
❮ Jsref Regexp Newline Jsref Big ❯