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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software