feat(ios): check if white balance mode locked is supported
This commit is contained in:
parent
8c2100dd63
commit
f4965cfc3d
@ -612,9 +612,8 @@ BOOL _sessionInterrupted = NO;
|
||||
return;
|
||||
}
|
||||
|
||||
if (self.whiteBalance == RNCameraWhiteBalanceAuto) {
|
||||
if (self.whiteBalance == RNCameraWhiteBalanceAuto || ![device isWhiteBalanceModeSupported:AVCaptureWhiteBalanceModeLocked]) {
|
||||
[device setWhiteBalanceMode:AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance];
|
||||
[device unlockForConfiguration];
|
||||
} else {
|
||||
AVCaptureWhiteBalanceGains rgbGains;
|
||||
if (self.whiteBalance == RNCameraWhiteBalanceCustom
|
||||
|
||||
Loading…
Reference in New Issue
Block a user