captureDeviceType
The camera that supplies the video format.
Declaration
var captureDeviceType: AVCaptureDevice.DeviceType { get }Discussion
To specify a particular video format, select from your configuration’s supportedVideoFormats and set the desired format to the configuration’s videoFormat property.
For example, to specify the ultra-wide camera in a face-tracking session, search the supported video formats for the builtInUltraWideCamera capture device.
let config = ARFaceTrackingConfiguration()
for videoFormat in ARFaceTrackingConfiguration.supportedVideoFormats {
if videoFormat.captureDeviceType == .builtInUltraWideCamera {
config.videoFormat = videoFormat
break
}
}
session.run(config)