I am trying to simultaneously capture from both the telephoto and wide angle cameras on a iPhoneX. This is how I initialized the device:
let captureDevice = AVCaptureDevice.default(.builtInDualCamera, for: .video, position: .back)
and I requested dual photo delivery for AVPhotoOutput:
let photoSettings = AVCapturePhotoSettings()
photoSettings.isDualCameraDualPhotoDeliveryEnabled = true
capturePhotoOutput.capturePhoto(with: photoSettings, delegate: self)
However, I am running into this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCapturePhotoOutput setDualCameraDualPhotoDeliveryEnabled:] Dual Camera dual photo delivery is not supported in this configuration'
Are there additional settings I need to enable or disable?