Instance Method


The designated initializer for a Picture in Picture controller.


- (instancetype)initWithPlayerLayer:(AVPlayerLayer *)playerLayer;



The player layer containing the media content for the Picture in Picture controller.

Return Value

A new Picture in Picture controller, initialized with the specified player layer.


If Picture in Picture is not supported on the current device, this method returns nil.

To ensure that PiP continues to work, do not release the returned object, whether your app is running in the foreground or background.

See Also

Creating and Configuring a Picture in Picture Controller


The delegate object for the Picture in Picture controller.


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


The AVPlayerLayer instance containing the media to play.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software