Class

AVSampleBufferGenerator

An object used to create sample buffer opaque objects.

Declaration

@interface AVSampleBufferGenerator : NSObject

Overview

Each request for CMSampleBuffer creation is described in an AVSampleBufferRequest object. The CMSampleBufferRef opaque objects are returned synchronously. If requested, sample data may be loaded asynchronously (depending on file format support).

Topics

Creating Sample Buffer Generators

- initWithAsset:timebase:

Creates a new sample buffer generator.

Creating a Sample Buffer

- createSampleBufferForRequest:

Creates a new sample buffer reference for the specified buffer request.

Retrieving Sample Buffer Data

+ notifyOfDataReadyForSampleBuffer:completionHandler:

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

Relationships

Inherits From

See Also

Sample Buffer Manipulation

AVSampleBufferRequest

An object that describes a sample buffer creation request.

AVSampleCursor

An object that provides information about the current media sample at its current position.

AVQueuedSampleBufferRendering

Methods you can implement to enqueue sample buffers for presentation.