onPause( )


Adds an event handler that runs when playback is paused.

An audio track can be paused by a user clicking the audio player's pause button or by calling its pause() or stop() functions.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(event: Event): void The name of the function or the function expression to run when the audio track is paused.

Returns
Return Type:AudioPlayer
Was this helpful?
Yes
No