Provides options to configure Picture in Picture playback.

interface PictureInPictureConfig {
    isEnabled?: boolean;
    shouldEnterOnBackground?: boolean;
}

Properties

isEnabled?: boolean

Whether Picture in Picture feature is enabled or not.

Default is false.

shouldEnterOnBackground?: boolean

Defines whether Picture in Picture should start automatically when the app transitions to background.

Does not have any affect when Picture in Picture is disabled.

Default is false.

Platform

iOS 14.2 and above