An object that manages capture activity and coordinates the flow of data from input devices to capture outputs.
Mac Catalyst 13.0+
To perform real-time capture, you instantiate an AVCaptureSession object and add appropriate inputs and outputs. The following code fragment illustrates how to configure a capture device to record audio.
You invoke startRunning to start the flow of data from the inputs to the outputs, and invoke stopRunning to stop the flow.
You use the sessionPreset property to customize the quality level, bitrate, or other settings for the output. Most common capture configurations are available through session presets; however, some specialized options (such as high frame rate) require directly setting a capture format on an AVCaptureDevice instance.