VideoCodecDelegate
public protocol VideoCodecDelegate : AnyObject
The interface a VideoCodec uses to inform its delegate.
-
Tells the receiver to set a formatDescription.
Declaration
Swift
func videoCodec(_ codec: VideoCodec, didSet formatDescription: CMFormatDescription?) -
Tells the receiver to output a encoded or decoded sampleBuffer.
Declaration
Swift
func videoCodec(_ codec: VideoCodec, didOutput sampleBuffer: CMSampleBuffer) -
Tells the receiver to occured an error.
Declaration
Swift
func videoCodec(_ codec: VideoCodec, errorOccurred error: VideoCodec.Error)
VideoCodecDelegate Protocol Reference