Contents

canAdd(_:)

Determines whether the asset writer supports adding the input group.

Declaration

func canAdd(_ inputGroup: AVAssetWriterInputGroup) -> Bool

Parameters

  • inputGroup:

    The asset writer input group to add.

Return Value

true if you can add the input group to the asset writer; otherwise false.

Discussion

This method returns false if the asset writer’s output file type doesn’t support mutually exclusive relationships among tracks, or if the input group contains inputs with media types that you can’t relate.

See Also

Configuring input groups