Instance Method

stopPictureInPicture()

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

Declaration

func 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

func startPictureInPicture()

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