broadcastVideoOutput(_:didDropVideoFrameWithPresentationTimeStamp:from:)
Called when a video frame is dropped during broadcast video output processing.
Declaration
optional func broadcastVideoOutput(_ output: AVCaptureBroadcastVideoOutput, didDropVideoFrameWithPresentationTimeStamp presentationTimeStamp: CMTime, from connection: AVCaptureConnection)Parameters
- output:
The Avcapturebroadcastvideooutput instance that dropped the video frame.
- presentationTimeStamp:
The presentation timestamp (PTS) of the dropped video frame.
- connection:
The Avcaptureconnection associated with the dropped video frame.
Discussion
This method is called whenever the broadcast video output system needs to drop a video frame due to performance constraints, destination issues, buffer overruns, or encoding failures.