Instance Method

startPictureInPicture

Starts Picture in Picture for the associated AVPlayerLayer instance, if possible.

Declaration

- (void)startPictureInPicture;

Discussion

When you call this method and Picture in Picture (PiP) is possible, your delegate receives a call to the pictureInPictureControllerWillStartPictureInPicture: method. After a successful start, your delegate receives a call to the pictureInPictureControllerDidStartPictureInPicture: method.

If PiP fails, your delegate receives a call to the pictureInPictureControllerFailedToStartPictureInPicture:withError: method.

Whether you explicitly stop PiP, the user stops it through interaction, or the system stops it, your delegate receives a call to the pictureInPictureControllerWillStopPictureInPicture: method, followed by the pictureInPictureControllerDidStopPictureInPicture: method after the PiP stop animation completes.

See Also

Controlling Picture in Picture Playback

- stopPictureInPicture

Stops Picture in Picture for the associated AVPlayerLayer instance, if it is currently active.