Instance Method

copyNextSampleBuffer()

Copies the next sample buffer for the output.

Declaration

func copyNextSampleBuffer() -> CMSampleBuffer?

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

var alwaysCopiesSampleData: Bool

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

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