Instance Method

stopPictureInPicture

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

Declaration

- (void)stopPictureInPicture;

Discussion

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

- startPictureInPicture

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