Instance Method

startReading

Prepares the receiver for obtaining sample buffers from the asset.

Declaration

- (BOOL)startReading;

Return Value

YES if the reader is able to start reading, otherwise NO.

Discussion

This method validates the entire collection of settings for outputs for tracks, for audio mixdown, and for video composition and initiates reading of all outputs.

status signals the terminal state of the asset reader, and if a failure occurs, error describes the failure.

See Also

Controlling Reading

status

The status of the reading of sample buffers from the asset.

AVAssetReaderStatus

The statuses for a reader.

- cancelReading

Cancels any background work and prevents the receiver’s outputs from reading more samples.

error

Describes the error that occurred.

timeRange

The time range to read from the asset.