Contents

canAdd(_:)

Determines whether you can add the output to the asset reader.

Declaration

func canAdd(_ output: AVAssetReaderOutput) -> Bool

Parameters

  • output:

    The asset reader output to test.

Return Value

true if you can add the output; otherwise, false.

Discussion

You may only add outputs that retrieve media data from the asset that you associate with the asset reader.

See Also

Managing outputs