Class

AVCaptureDeviceInput

A capture input that provides media from a capture device to a capture session.

Declaration

@interface AVCaptureDeviceInput : AVCaptureInput

Overview

AVCaptureDeviceInput is a concrete subclass of AVCaptureInput that you use to capture data from an AVCaptureDevice object.

Topics

Creating an Input

- initWithDevice:error:

Initializes an input to use a specified device.

+ deviceInputWithDevice:error:

Returns an input initialized to use a specified device.

Accessing the Device

device

The input’ associated capture device.

- portsWithMediaType:sourceDeviceType:sourceDevicePosition:

Retrieves a virtual device’s constituent device ports for use in a multi-camera session.

Beta

Setting Input Device Properties

unifiedAutoExposureDefaultsEnabled

A Boolean indicating whether the input enables unified auto-exposure defaults.

videoMinFrameDurationOverride

A time value that acts as a modifier to a capture device’s activeVideoMinFrameDuration property.

Beta

Relationships

Inherits From

See Also

Capture Devices

Choosing a Capture Device

Select the front or back camera, or use advanced features like the TrueDepth camera or dual camera.

AVCaptureDevice

A device that provides input (such as audio or video) for capture sessions and offers controls for hardware-specific capture features.

Beta Software

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.

Learn more about using Apple's beta software