Search...
onPause( )
Adds an event handler that runs when the playback is paused.
Description
Syntax
function onPause(handler: EventHandler): VideoBoxhandler: function EventHandler(event: Event): void
onPause Parameters
NAME
TYPE
DESCRIPTION
handler
The name of the function or the function expression to run when the video is paused.
EventHandler Parameters
NAME
TYPE
DESCRIPTION
Returns
This function does not return anything.
Return Type:
void
Related Content:
Was this helpful?
Get the ID of the video box that has been paused
Copy Code
1$w("#myVideoBox").onPause( (event) => {2 let targetId = event.target.id; // "myVideoBox"3});