Instance Method


Adds an output to the receiver.


func add(_ output: AVAssetReaderOutput)



The reader output to add.


Outputs are created with a reference to one or more AVAssetTrack objects. Adding an output to an asset reader indicates to the reader that it should source from those tracks. The tracks must be owned by the asset returned by the reader’s asset property.

You can't add an output after starting reading.

See Also

Managing Outputs

var outputs: [AVAssetReaderOutput]

The outputs from which clients of the reader can read media data.

func canAdd(AVAssetReaderOutput) -> Bool

Returns a Boolean value that indicates whether to add an output to the receiver.

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