playerViewControllerWillStartPictureInPicture(_:)
Tells the delegate when Picture in Picture is about to start.
Declaration
optional func playerViewControllerWillStartPictureInPicture(_ playerViewController: AVPlayerViewController)Parameters
- playerViewController:
The player view controller.
Mentioned in
Discussion
Implement this method to update your player user interface, such as hiding or disabling playback controls, prior to PiP starting.
See Also
Responding to Picture in Picture Life Cycle Events
playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_:)playerViewControllerDidStartPictureInPicture(_:)playerViewController(_:failedToStartPictureInPictureWithError:)playerViewControllerWillStopPictureInPicture(_:)playerViewControllerDidStopPictureInPicture(_:)playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)