Instance Method

cancelReading()

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

Declaration

func cancelReading()

Discussion

If you want to stop reading samples from the receiver before reaching the end of its time range, you should call this method to stop any background read ahead operations that the may have been in progress.

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.

var error: Error?

Describes the error that occurred.

var timeRange: CMTimeRange

The time range to read from the asset.