contentSource
The source of the controller’s content.
Declaration
var contentSource: AVPictureInPictureController.ContentSource? { get set }Discussion
You can change a content source while a Picture in Picture session is active, but only if the new content source is ready for display. If it isn’t ready, the session ends immediately.
If your app uses AVPlayerLayer, verify that the value of its isReadyForDisplay property is true before setting it as a content source.