add commitConfiguration to stopSession
This commit is contained in:
parent
b2d9fa904b
commit
5ba2d3e40d
|
@ -415,6 +415,7 @@ RCT_EXPORT_METHOD(hasFlash:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRej
|
|||
#endif
|
||||
dispatch_async(self.sessionQueue, ^{
|
||||
[self.previewLayer removeFromSuperlayer];
|
||||
[self.session commitConfiguration];
|
||||
[self.session stopRunning];
|
||||
for(AVCaptureInput *input in self.session.inputs) {
|
||||
[self.session removeInput:input];
|
||||
|
|
Loading…
Reference in New Issue