Audio networkState attribute
Definition and usage
networkState
The property returns the current network state (active) of the audio.
Instance
Get the current network state of the audio:
var x = document.getElementById("myAudio").networkState;
Syntax
audioObject.networkState
Return value
Type | Description |
---|---|
Number |
Represents the current network state of the audio element:
|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |