init(inputPorts:output:)
Creates a capture connection that represents a connection between multiple input ports and an output.
Declaration
init(inputPorts ports: [AVCaptureInput.Port], output: AVCaptureOutput)Parameters
- ports:
An array of Port instances that relate to Avcaptureinput instances.
- output:
An Avcaptureoutput instance.
Return Value
A capture connection that represents a connection between ports and output.
Discussion
You can add the connection this method returns to an AVCaptureSession instance with the addConnection(_:) method.
The addInput(_:): or addOutput(_:) methods automatically form connections between all compatible inputs and outputs. You don’t need to manually create and add connections to the session unless you use the primitive addInputWithNoConnections(_:) and addOutputWithNoConnections(_:) methods.