HTML Audio/Video DOM networkState Property
❮ HTML Audio/Video DOM Reference
Example
Get the current network state of the video:
let vid = document.getElementById("myVideo");
alert(vid.networkState);
Try it Yourself »
Definition and Usage
The networkState property returns the current network state (activity) of the audio/video.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
networkState | Yes | 9.0 | 3.5 | Yes | Yes |
Syntax
audio|video.networkState
Return Value
Type | Description |
---|---|
Number | Represents the current network state of the audio/video element:
|
❮ HTML Audio/Video DOM Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.