Find out if the audio has ended:
The result of x could be:
The ended property returns whether the playback of the audio has ended.
An audio has ended when the playback position is at the end of the audio.
Note: This property is read-only.
The ended property is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier versions.
Return Value: | A Boolean, returns true if the playback has ended, otherwise it returns false |
---|