Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 456 Bytes

pause.md

File metadata and controls

25 lines (17 loc) · 456 Bytes

pause

Description

Pause the current loaded video. Equivalent to a video element's pause method.

Note that a content can be paused even if its current state is BUFFERING or SEEKING.

You might want for a content to be loaded before being able to pause (the current state has to be different than LOADING, RELOADING or STOPPED).

Syntax

player.pause();

Example

const pauseContent = () => {
  player.pause();
};