isFullscreen

This option is deprecated, it will disappear in the next major release `v4.0.0` (see Deprecated APIs).

Description

Returns true if the video element is in fullscreen mode, false otherwise.

Example

if (player.isFullscreen()) {
  console.log("The player is in fullscreen mode");
}

Syntax

const isFullscreen = player.isFullscreen();
  • return value Boolean
Page List