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.

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