A connection between a specific pair of capture input and capture output objects in a capture session.
- iOS 4.0+
- macOS 10.7+
Capture inputs (instances of
AVCapture) have one or more input ports (instances of
AVCapture). Capture outputs (instances of
AVCapture) can accept data from one or more sources (for example, an
AVCapture object accepts both video and audio data).
You can add an
AVCapture instance to a session using the
add method only if the
can method returns
true. When using the
add method, connections are formed automatically between all compatible inputs and outputs. You only need to add connections manually when adding an input or output with no connections. You can also use connections to enable or disable the flow of data from a given input or to a given output.