diff --git a/Library/Sources/SCRecorder.m b/Library/Sources/SCRecorder.m index 97183d0d..97a94c6a 100644 --- a/Library/Sources/SCRecorder.m +++ b/Library/Sources/SCRecorder.m @@ -971,7 +971,17 @@ - (void)configureDevice:(AVCaptureDevice*)newDevice mediaType:(NSString*)mediaTy if (newDevice.isSmoothAutoFocusSupported) { newDevice.smoothAutoFocusEnabled = YES; } - newDevice.subjectAreaChangeMonitoringEnabled = true; + + if ([newDevice isFocusModeSupported:AVCaptureFocusModeAutoFocus]) { + newDevice.subjectAreaChangeMonitoringEnabled = true; + } else { + if ([newDevice isExposureModeSupported:AVCaptureExposureModeContinuousAutoExposure]) { + newDevice.exposureMode = AVCaptureExposureModeContinuousAutoExposure; + } + if ([newDevice isFocusModeSupported:AVCaptureFocusModeContinuousAutoFocus]) { + newDevice.exposureMode = AVCaptureFocusModeContinuousAutoFocus; + } + } if (newDevice.isLowLightBoostSupported) { newDevice.automaticallyEnablesLowLightBoostWhenAvailable = YES;