Contents

playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_:)

Asks the delegate whether the player view controller automatically dismisses itself when Picture in Picture starts.

Declaration

optional func playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_ playerViewController: AVPlayerViewController) -> Bool

Parameters

  • playerViewController:

    The player view controller.

Return Value

true to indicate that the player view controller automatically dismisses itself; otherwise false.

Discussion

Implement this method and return false to prevent the player view controller from automatically dismissing when Picture in Picture starts.

See Also

Responding to Picture in Picture Life Cycle Events