A capture session that supports simultaneous capture from multiple inputs of the same media type.


class AVCaptureMultiCamSession : AVCaptureSession


The session preset for a multicamera session is always inputPriority. Set each capture device’s activeFormat value to the desired quality of service.

You can dynamically enable and disable this session’s individual camera inputs without interrupting capture preview. To stop an individual camera, disable all of its connections or connected ports. The camera then stops streaming data to save power and bandwidth. Other inputs that are streaming data through the session are unaffected.


Determining Multi-Camera Support

class var isMultiCamSupported: Bool

A Boolean value that indicates whether this device supports multi-camera sessions.

Managing Resources

var hardwareCost: Float

A value that indicates the percentage of the session’s available hardware budget currently in use.

var systemPressureCost: Float

A value that indicates the system pressure cost of the current session configuration.


Inherits From

Conforms To

See Also

Capture Sessions

Setting Up a Capture Session

Configure input devices, output media, preview views, and basic settings before capturing photos or video.

AVCam: Building a Camera App

Capture photos with depth data and record video using the front and rear iPhone and iPad cameras.

AVMultiCamPiP: Capturing from Multiple Cameras

Simultaneously record the output from the front and back cameras into a single movie file by using a multi-camera capture session.

class AVCaptureSession

An object that manages capture activity and coordinates the flow of data from input devices to capture outputs.