Instance Property

sourceDeviceType

The device type of the source camera providing the photo.

Declaration

@property(nonatomic, readonly) AVCaptureDeviceType sourceDeviceType;

Discussion

When capturing a photo using a virtual device, you may query this property to find out the source type of the photo. For example, on a dual camera, resulting photos have a source device type of AVCaptureDeviceTypeBuiltInDualCamera or AVCaptureDeviceTypeBuiltInTelephotoCamera. For all other types of capture, the source device type is the same as the device type of the capture device connected to the photo output.

This method returns nil if the source of the photo is not a capture device.

See Also

Inspecting an Input Port

enabled

Indicates whether the port is enabled.

input

The input object that owns the port.

mediaType

The port’s media type.

formatDescription

A description of the port format.

clock

An object representing the capture device’s own clock.

sourceDevicePosition

The position of the source device providing input through this port.