init(playerLayer:)
Creates a Picture in Picture controller with a player layer.
Declaration
convenience init?(playerLayer: AVPlayerLayer)Parameters
- playerLayer:
The player layer from which to source the media content for the Picture in Picture controller.
Discussion
For Picture in Picture to work correctly, maintain a strong reference to this object whether your app is running in the foreground or background.