Instance Method

playerViewController(_:failedToStartPictureInPictureWithError:)

Tells the delegate Picture in Picture failed to start.

Declaration

optional func playerViewController(_ playerViewController: AVPlayerViewController, failedToStartPictureInPictureWithError error: Error)

Parameters

playerViewController

The player view controller to which you’ve assigned the delegate.

error

An error describing why it failed.

See Also

Responding to Picture in Picture Playback Events

func playerViewControllerWillStartPictureInPicture(AVPlayerViewController)

Tells the delegate Picture in Picture is about to start.

func playerViewControllerDidStartPictureInPicture(AVPlayerViewController)

Tells the delegate Picture in Picture playback has started.

func playerViewControllerWillStopPictureInPicture(AVPlayerViewController)

Tells the delegate Picture in Picture is about to stop.

func playerViewControllerDidStopPictureInPicture(AVPlayerViewController)

Tells the delegate Picture in Picture playback has stopped and the stopping animation has finished.