mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Set AVCaptureSessionPresetHigh before capturing photo
My previous commit for this set it in one place but I forgot the other
This commit is contained in:
parent
351e0bb89e
commit
d843de4eb6
@ -456,6 +456,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
|
||||
return;
|
||||
}
|
||||
|
||||
self.session.sessionPreset = AVCaptureSessionPresetPhoto;
|
||||
|
||||
AVCaptureStillImageOutput *stillImageOutput = [[AVCaptureStillImageOutput alloc] init];
|
||||
if ([self.session canAddOutput:stillImageOutput]) {
|
||||
stillImageOutput.outputSettings = @{AVVideoCodecKey : AVVideoCodecJPEG};
|
||||
|
Loading…
x
Reference in New Issue
Block a user