Initializer

init(asset:)

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

Declaration

init(asset: AVAsset) throws

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.

Discussion

See Also