Contents

AVCaptureConnection

An object that represents a connection from a capture input to a capture output.

Declaration

class AVCaptureConnection

Overview

Capture inputs have one or more input ports (instances of AVCaptureInput.Port). Capture outputs can accept data from one or more sources (for example, an AVCaptureMovieFileOutput object accepts both video and audio data).

You can add an AVCaptureConnection instance to a session using the addConnection(_:) method only if the canAddConnection(_:) method returns true. When using the addInput(_:) or addOutput(_:) method, the session forms connections 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.

Topics

Creating a connection

Enabling a connection

Inspecting a connection

Rotating a video

Mirroring a video

Stabilizing video

Delivering camera calibration settings

Configuring a video’s frame rate

Scaling a video

Interlacing video

Deprecated

See Also

Capture sessions