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.