Adds an output to the receiver.
SDKs
- iOS 4.1+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- AVFoundation
Declaration
func add(_ output: AVAsset Reader Output)
Parameters
output
The reader output to add.
Discussion
Outputs are created with a reference to one or more AVAsset
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.