Type Method

assetReaderWithAsset:error:

Returns an asset reader for reading media data from a specified asset.

Declaration

+ (instancetype)assetReaderWithAsset:(AVAsset *)asset error:(NSError * _Nullable *)outError;

Parameters

asset

The asset from which media data is to be read.

outError

If initialization of the reader fails, upon return contains an error that describes the problem.

Return Value

An asset reader, initialized for reading media data from asset.

See Also

Creating a Reader

- initWithAsset:error:

Creates an asset reader for reading media data from a specified asset.