An object that manages capture activity and coordinates the flow of data from input devices to capture outputs.
Mac Catalyst 13.0+Beta
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.
A subclass of AVCaptureSession that supports simultaneous capture from multiple inputs of the same media type.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.