Interface PiPConfiguration

Describes the configuration of the picture-in-picture feature.

interface PiPConfiguration {
    position?: PiPPosition;
    retainPresentationModeOnSourceChange?: boolean;
    visibility?: number;


position?: PiPPosition

The corner in which the player should be shown while in picture-in-picture.

Default Value


retainPresentationModeOnSourceChange?: boolean

Whether the presentation mode should be retained on source changes.

Default Value


visibility?: number

The maximum percentage of the original player position that should be visible to enable picture-in-picture automatically.


- If not configured, picture-in-picture can only be activated by calling Presentation.requestMode with the 'picture-in-picture' argument.

Default Value