Instance Method

canAdd(_:)

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

Declaration

func canAdd(_ output: AVAssetReaderOutput) -> Bool

Parameters

output

The reader output tested.

Return Value

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

Discussion

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