playerViewController(_:failedToStartPictureInPictureWithError:)
Tells the delegate when Picture in Picture fails to start.
Declaration
optional func playerViewController(_ playerViewController: AVPlayerViewController, failedToStartPictureInPictureWithError error: any Error)Parameters
- playerViewController:
The player view controller.
- error:
An error object that describes the failure.
See Also
Responding to Picture in Picture Life Cycle Events
playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_:)playerViewControllerWillStartPictureInPicture(_:)playerViewControllerDidStartPictureInPicture(_:)playerViewControllerWillStopPictureInPicture(_:)playerViewControllerDidStopPictureInPicture(_:)playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)