Properti Audio ended
Definisi dan penggunaan
end
Properti ini mengembalikan apakah pemutaran audio sudah selesai.
Apabila lokasi pemutar berada di akhir audio, audio telah berakhir.
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, if the playback ends, it returns true, otherwise it returns false. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |