PictureInPicture

public protocol PictureInPicture

The PictureInPicture object helps you configure the picture-in-picture mode

  • Get the current picture-in-picture corner or nil if the player is not in PiP mode.

    Declaration

    Swift

    var currentCorner: PictureInPictureCorner? { get }
  • Configure the picture-in-picture (PiP) view

    Declaration

    Swift

    func configure(movable: Bool?, defaultCorner: PictureInPictureCorner?, scale: Float?, visibility: Double?)

    Parameters

    movable

    Indicates wheter or not the PiP view is movable

    defaultCorner

    Indicates the default corner at which the PiP view will appear when enering PiP mode

    scale

    Indicates the scale of the PiP view default to 0.33

    visibility

    (from 0 to 1) 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 turned on by setting presentationMode to pictureInPicture. default to nil

  • Configure the picture-in-picture (PiP) view

    Declaration

    Swift

    func configure(movable: Bool?, defaultCorner: PictureInPictureCorner?, scale: Float?)

    Parameters

    movable

    Indicates wheter or not the PiP view is movable

    defaultCorner

    Indicates the default corner at which the PiP view will appear when enering PiP mode

    scale

    Indicates the scale of the PiP view default to 0.33