finish

("finish", () => void): this;

Emitted when the audio has finished playing.

Returns

this

Handler Function

When the finish event is fired, attached handler functions are called with no arguments.

Example

myAudio.on("finish", audioFinished);

function audioFinished() {
    //code to run when the myAudio audio is finished
}
zapcode branded_zapcode i