Protocol

AVCaptureVideoDataOutputSampleBufferDelegate

Methods for receiving sample buffers from and monitoring the status of a video data output.

Declaration

@protocol AVCaptureVideoDataOutputSampleBufferDelegate

Overview

This protocol defines an interface for delegates of an AVCaptureVideoDataOutput object to receive captured video sample buffers and be notified of late sample buffers that were dropped.

The delegate of an AVCaptureVideoDataOutput object must adopt the AVCaptureVideoDataOutputSampleBufferDelegate protocol. The methods in this protocol are optional.

Topics

Managing Sample Buffer Behavior

- captureOutput:didOutputSampleBuffer:fromConnection:

Notifies the delegate that a new video frame was written.

- captureOutput:didDropSampleBuffer:fromConnection:

Notifies the delegate that a video frame was discarded.

Relationships

Inherits From

See Also

Receiving Captured Video Data

- setSampleBufferDelegate:queue:

Sets the sample buffer delegate and the queue on which callbacks should be invoked.

sampleBufferDelegate

The capture object’s delegate.

sampleBufferCallbackQueue

The queue on which delegate callbacks should be invoked

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software