init(sampleBufferDisplayLayer:playbackDelegate:)
Creates a content source with a sample buffer display layer.
Declaration
init(sampleBufferDisplayLayer: AVSampleBufferDisplayLayer, playbackDelegate: any AVPictureInPictureSampleBufferPlaybackDelegate)Parameters
- sampleBufferDisplayLayer:
The sample buffer display layer to show in Picture in Picture.
- playbackDelegate:
The playback delegate object that responds to Picture in Picture events.