Search.../

onPause( )

Adds an event handler that runs when playback is paused.

Description

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

Authorization

Request

This endpoint does not take any parameters

Response Object

The video player that triggered the event.

Returns an empty object.

Status/Error Codes

Related Content:

Was this helpful?

Get the ID of the video player has been paused

Copy Code
1$w("#myVideoPlayer").onPause( (event) => {
2 let targetId = event.target.id; // "myVideoPlayer"
3});