Audio readyState attribute
Definition and usage
readyState
The property returns the current readiness state of the audio.
The readiness state indicates whether the audio is ready to play.
Note:This property is read-only.
Example
Obtaining the current readiness state of the audio:
var x = document.getElementById("myAudio").readyState; document.getElementById("demo").innerHTML = x;
Syntax
audioObject.readyState
Return value
Type | Ba da cikin yankin yana nuna |
---|---|
Number |
Ba da cikin yankin yana baiwa:
|
Rarraba Browser
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Tukuru | Tukuru | Tukuru | Tukuru | Tukuru |