Audio ended Property
Definition and Usage
end
The property returns whether the audio playback has ended.
When the playback position is at the end of the audio, the audio has ended.
Note:This property is read-only.
Example
Check if the audio has ended:
var x = document.getElementById("myAudio").ended;
Syntax
audioObject.ended
Technical Details
Return Value: | Boolean value, returns true if the playback has ended, otherwise returns false. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |