Ensure custom exposure mode is supported #7

Merged
colonelpanic merged 1 commits from ivan/ensure-capture-mode-is-supported into main 2024-10-10 15:18:13 -06:00

View File

@ -200,6 +200,10 @@ extension CameraSession {
return
}
guard captureDevice.isExposureModeSupported(.custom) else {
ReactLogger.log(level: .info, message: "Custom exposure mode not supported")
return
}
do {
// Lock the device for configuration
try captureDevice.lockForConfiguration()