Audio events are triggered by circumstances related to the audio file and audio player.
Event Type | Meaning |
---|---|
canplay | The audio can start playing but might be interrupted by buffering. |
canplaythrough | The audio can be played to the end without having to pause for buffering. |
ended | Playback has stopped because the end of the file has been reached. |
error | An error has occurred while accessing the audio file. |
pause | Playback has been paused. |
play | The play() function has been initiated, or the auto- play attribute has caused playback to begin. |
playing | Playback has started. The timing of this event may differ from the play event because of file load delays. |
volumechange | Either the volume attribute or the muted attribute has changed. |