Instance Method

copyNextSampleBuffer

Copies the next sample buffer for the output.

Declaration

- (CMSampleBufferRef)copyNextSampleBuffer;

Return Value

The output sample buffer, or NULL if there are no more sample buffers available for the output within the time range specified by the asset reader’s timeRange property. Ownership follows the The Create Rule.

Discussion

If this method returns NULL, you should check the value of the associated AVAssetReader object’s status property to determine why it couldn't read any more samples.

See Also

Copying a Buffer

alwaysCopiesSampleData

A Boolean value that indicates whether to vend data in buffers before copying.