Contents

notifyOfDataReady(for:completionHandler:)

Notifies the sample buffer generator when data is ready for the sample buffer reference or an error has occurred.

Declaration

class func notifyOfDataReady(for sbuf: CMSampleBuffer, completionHandler: @escaping  @Sendable (Bool, (any Error)?) -> Void)
class func notifyOfDataReady(for sbuf: CMSampleBuffer) async throws

Parameters

  • sbuf:

    The CMSampleBufferRef.

  • completionHandler:

    A completion block that is called when data is ready for the sample buffer or an error occurs. The dataReady argument is True if data is read for the sample buffer. If an error occurs, the error argument contains the NSError object.