Protocol

AVPictureInPictureControllerDelegate

Methods you can implement to configure your app’s user interface to respond to user interactions for Picture in Picture on iPad.

Declaration

@protocol AVPictureInPictureControllerDelegate

Overview

Adopt this protocol in a custom object, and assign the object as the delegate of your AVPictureInPictureController instance.

Topics

Managing Your App’s UI for Picture in Picture

- pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:

Tells the delegate when Picture in Picture is about to stop, to give your app an opportunity to restore its video playback user interface.

Responding to Picture in Picture Playback Events

- pictureInPictureControllerWillStartPictureInPicture:

Tells the delegate when Picture in Picture is about to start.

- pictureInPictureControllerDidStartPictureInPicture:

Tells the delegate when Picture in Picture playback has started.

- pictureInPictureControllerWillStopPictureInPicture:

Tells the delegate when Picture in Picture is about to stop.

- pictureInPictureControllerDidStopPictureInPicture:

Tells the delegate when Picture in Picture playback stops.

- pictureInPictureController:failedToStartPictureInPictureWithError:

Tells the delegate if Picture in Picture failed to start.

Relationships

Inherits From

See Also

Creating and Configuring a Picture in Picture Controller

- initWithPlayerLayer:

The designated initializer for a Picture in Picture controller.

delegate

The delegate object for the Picture in Picture controller.

playerLayer

The AVPlayerLayer instance containing the media to play.