Instance Method


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


func canAdd(_ output: AVAssetReaderOutput) -> Bool



The reader output tested.

Return Value

true if you can add output to the receiver, otherwise false.


You can't add an output that reads from a track of an asset other than the asset used to initialize the receiver.

See Also

Managing Outputs

var outputs: [AVAssetReaderOutput]

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

func add(AVAssetReaderOutput)

Adds 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