Instance Method

playerViewControllerDidStartPictureInPicture(_:)

Tells the delegate Picture in Picture playback has started.

Declaration

optional func playerViewControllerDidStartPictureInPicture(_ playerViewController: AVPlayerViewController)

Parameters

playerViewController

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

Discussion

Implement this method, for example, to adjust your user interface upon start of Picture in Picture playback.

See Also

Responding to Picture in Picture Playback Events

func playerViewControllerWillStartPictureInPicture(AVPlayerViewController)

Tells the delegate Picture in Picture is about to start.

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.