Instance Property

playerLayer

The AVPlayerLayer instance containing the media to play.

Declaration

var playerLayer: AVPlayerLayer { get }

Discussion

You associate a player layer with a Picture in Picture controller when you employ the designated initializer, init(playerLayer:). You cannot replace the player layer.

See Also

Creating and Configuring a Picture in Picture Controller

init?(playerLayer: AVPlayerLayer)

The designated initializer for a Picture in Picture controller.

var delegate: AVPictureInPictureControllerDelegate?

The delegate object for the Picture in Picture controller.

protocol AVPictureInPictureControllerDelegate

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