The statuses for a reader.


enum Status : Int


You access the reader’s status using the status property.


Reader Statuses

case unknown

The status of the reader is unknown.

case reading

The reader is ready to provide more sample buffers to its outputs.

case completed

The reader finished providing all available sample buffers to all of its outputs.

case failed

The reading failed.

case cancelled

The reading was canceled.

See Also

Controlling Reading

var status: AVAssetReader.Status

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

func startReading() -> Bool

Prepares the receiver for obtaining sample buffers from the asset.

func cancelReading()

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

var error: Error?

Describes the error that occurred.

var timeRange: CMTimeRange

The time range to read from the asset.