Class

AVAssetReaderOutput

An abstract class that defines an interface for reading a single collection of samples of a common media type from an asset reader object.

Declaration

@interface AVAssetReaderOutput : NSObject

Overview

There are several subclasses of AVAssetReaderOutput for specific tasks, such as AVAssetReaderTrackOutput or AVAssetReaderVideoCompositionOutput.

You can read the media data of an asset by adding one or more concrete instances of AVAssetReaderOutput to an AVAssetReader object using addOutput:.

Topics

Copying a Buffer

- copyNextSampleBuffer

Copies the next sample buffer for the output.

alwaysCopiesSampleData

A Boolean value that indicates whether to vend data in buffers before copying.

Inspecting the Media Type

mediaType

A string representing the media type of the track represented by the output.

Configuring Reading Settings

- markConfigurationAsFinal

Informs the receiver not to continue reconfiguring the time ranges, and allows the attached asset reader to change its status to completed.

- resetForReadingTimeRanges:

Restarts reading with a new set of time ranges.

supportsRandomAccess

A Boolean value that indicates whether the asset reader output supports reconfiguration of the time ranges.

Relationships

Inherits From

See Also

File Import

AVAssetReader

A reader object used to obtain the media data of an asset, either file-based or consisting of an assemblage of media data from multiple sources.

AVAssetReaderAudioMixOutput

An object that defines an interface for reading audio samples that result from mixing the audio from one or more tracks.

AVAssetReaderTrackOutput

An object that defines an interface for reading media data from a single track of an asset reader's asset.

AVAssetReaderSampleReferenceOutput

An object that defines an interface for reading sample references from a single asset track.

AVAssetReaderVideoCompositionOutput

An object that reads video frames composited from the frames in one or more tracks of a reader's assets.

AVAssetReaderOutputMetadataAdaptor

An object that defines an interface for reading metadata.

AVAssetImageGenerator

An object that provides thumbnail or preview images of assets independently of playback.