Class

AVCaptureDataOutputSynchronizer

An object that coordinates time-matched delivery of data from multiple capture outputs.

Declaration

@interface AVCaptureDataOutputSynchronizer : NSObject

Overview

Use this class when you need to capture media from multiple capture outputs and want to receive all data samples from the same timestamp in a single delegate callback.

For example, when you use an AVCaptureDataOutputSynchronizer object to coordinate the output of AVCaptureVideoDataOutput and AVCaptureDepthDataOutput objects, you can easily match each captured video frame to depth information captured at the same moment.

Topics

Configuring Synchronized Capture

- initWithDataOutputs:

Creates a capture output synchronizer for the specified capture outputs.

dataOutputs

The list of data outputs governed by this data output synchronizer.

Receiving Synchronized Capture Data

- setDelegate:queue:

Designates a delegate object to receive synchronized data and a dispatch queue for delivering that data.

delegate

A delegate object that receives synchronized capture data.

delegateCallbackQueue

A dispatch queue for delivering synchronized capture data.

AVCaptureDataOutputSynchronizerDelegate

Methods for receiving captured data from multiple capture outputs synchronized to the same timestamp.

Relationships

Inherits From

See Also

Synchronized Capture

AVCaptureSynchronizedDataCollection

A set of data samples collected simultaneously from multiple capture outputs.

AVCaptureSynchronizedDepthData

A container for scene depth information collected using synchronized capture.

AVCaptureSynchronizedMetadataObjectData

A container for metadata objects collected using synchronized capture.

AVCaptureSynchronizedSampleBufferData

A container for video or audio samples collected using synchronized capture.

AVCaptureSynchronizedData

The abstract superclass for media samples collected using synchronized capture.

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