Instance Property

status

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

Declaration

var status: AVAssetReader.Status { get }

Discussion

This property is thread safe. For possible values, see AVAssetReader.Status.

The value of this property indicates whether reading is in progress, has completed successfully, has been canceled, or has failed. You should check the value of this property after the AVAssetReaderOutput method copyNextSampleBuffer() returns NULL to determine why no more samples could be read.

See Also

Controlling Reading

enum AVAssetReader.Status

The statuses for a reader.

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.