Search.../

pause( )

Pauses playback.

Description

The pause() function pauses the current video and fires a pause event.

The onPause( ) event handler is called.

Any event handlers set in the Editor are also called.

Syntax

function pause(): Promise<void>

pause Parameters

This function does not take any parameters.

Returns

Fulfilled - When the playback has been paused.

Return Type:

Promise<void>

Was this helpful?

Pause playback

Copy Code
1$w("#myVideoBox").pause();
Pause playback and log a message when done

Copy Code
1$w("#myVideoBox").pause()
2 .then( () => {
3 console.log("Done with pause");
4 } );