Enumeration

AVAssetReader.Status

The statuses for a reader.

Declaration

enum Status : Int

Overview

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

Topics

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.

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