init(inputs:defaultInput:)
Creates a group for the asset writer inputs.
Declaration
init(inputs: [AVAssetWriterInput], defaultInput: AVAssetWriterInput?)Parameters
- inputs:
The inputs with tracks to arrange into a mutually exclusive group.
- defaultInput:
The group’s default input.
Discussion
When you add an input group to an asset writer, the system sets the default input’s marksOutputTrackAsEnabled property value to true, and the value of the other inputs in the group to false.