HTML DOM Audio networkState property
Examples
Obtaining audio current network status:
var x = document.getElementById("myAudio").networkState;
x output values:
1 // 音频可用且已选择了指定的资源,但没有使用网络
try it"
Definition and Usage
networkState audio property returns the current network status (activity).
Browser Support
All major browsers support networkState property.
Note: Internet Explorer 8 or earlier browser does not support this property.
grammar
audioObject .networkState
return value
类型 | 描述 |
---|---|
数字值 |
表示音频元素的当前网络状态:
|
Audio Object