Search.../

stop( )

Stops the playback.

Description

The stop() function stops the current playback, moves to the beginning of the video, and fires a pause event.

The onPause( ) event handler is called.

Any event handlers set in the Editor are also called.

Syntax

function stop(): Promise<void>

stop Parameters

This function does not take any parameters.

Returns

Fulfilled - When the playback has been stopped.

Return Type:

Promise<void>

Was this helpful?

Stop playback

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

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