Platforms to show: All Mac Windows Linux Cross-Platform

AVAssetReaderMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
You use an AVAssetReader object to obtain media data of an asset, whether the asset is file-based or represents an assemblage of media data from multiple sources (as with an AVComposition object).

AVAssetReader lets you:

Read raw un-decoded media samples directly from storage, obtain samples decoded into renderable forms.
Mix multiple audio tracks of the asset and compose multiple video tracks (by using AVAssetReaderAudioMixOutput and AVAssetReaderVideoCompositionOutput).
AVAssetReader's pipelines are multithreaded internally. After you initiate reading with initWithAsset:error:, a reader loads and processes a reasonable amount of sample data ahead of use so that retrieval operations such as copyNextSampleBuffer (AVAssetReaderOutput) can have very low latency. Note, however, that AVAssetReader is not intended for use with real-time sources, and its performance is not guaranteed for real-time operations.

Status Values

Constant Value Description
AVAssetReaderStatusCancelled 4 Indicates that reading was cancelled using cancelReading.
AVAssetReaderStatusCompleted 2 Indicates that the reader has provided all available sample buffers to all of its outputs.
AVAssetReaderStatusFailed 3 Indicates that reading failed.
AVAssetReaderStatusReading 1 Indicates that the reader is ready to provide more sample buffers to its outputs.
AVAssetReaderStatusUnknown 0 Indicates that startReading has not yet been invoked.

This class has no sub classes.

Some examples using this class:


The items on this page are in the following plugins: MBS AVFoundation Plugin.


AVAssetReaderAudioMixOutputMBS   -   AVAssetReaderOutputMBS


The biggest plugin in space...