Search.../

pause( )

Pauses playback.

Description

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

The pause event handlers set on the vido player by the onPause( ) function or in the Editor are called.

Syntax

function pause(): Promise<void>

pause Parameters

This function does not take any parameters.

Returns

Fulfilled - When playback has been paused.

Return Type:

Promise<void>

Was this helpful?

Pause playback

Code Example

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

Code Example

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