Instance Property

error

Describes the error that occurred.

Declaration

var error: Error? { get }

Discussion

This property is thread safe.

The value of this property describes what caused the reader to no longer be able to read its asset. If the reader’s status is not AVAssetReader.Status.failed, the value of this property is nil.

See Also

Controlling Reading

var status: AVAssetReader.Status

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

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 timeRange: CMTimeRange

The time range to read from the asset.