lxy 1 year ago
parent
commit
3033908388

+ 10 - 10
LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

@@ -1781,11 +1781,6 @@
         return;
     }
     
-//    if(self.effectView.superview != nil){
-//        [UIView animateWithDuration:0.5 animations:^{
-//            self.effectView.effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
-//        }];
-//    }
     if(newIndex != SDK_CAPTURE_MODE_MOVIE){
         [[SDKParameters shared].items enumerateObjectsUsingBlock:^(SDKParametersItem * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
             if (obj.model == self.mode) {
@@ -1805,7 +1800,6 @@
 
     }
         
-//    self.effectView.effect = nil;
     [self updateUIByMode];
     [self switchDevicePositionBack];
     [self updateNumberLabel];
@@ -1817,21 +1811,27 @@
     if((self.mode == SDK_CAPTURE_MODE_PANORAMA || self.mode == SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA)
        && oldModeEnum != SDK_CAPTURE_MODE_PANORAMA
        && oldModeEnum != SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA){
-        
+        [self.captureSession beginConfiguration];
         if([self.captureSession canAddOutput:self.videoDataOutput]){
-            [self.captureSession addOutput:self.videoDataOutput];
             [self.captureSession removeOutput:self.movieFileOutput];
+            [self.captureSession addOutput:self.videoDataOutput];
         }
+        [self.captureSession commitConfiguration];
+
     }
     else if((self.mode == SDK_CAPTURE_MODE_MOVIE)
             && (oldModeEnum == SDK_CAPTURE_MODE_PANORAMA
             || oldModeEnum == SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA)){
-        
+        [self.captureSession beginConfiguration];
+
         if([self.captureSession canAddOutput:self.movieFileOutput]){
-            [self.captureSession addOutput:self.movieFileOutput];
             [self.captureSession removeOutput:self.videoDataOutput];
+            [self.captureSession addOutput:self.movieFileOutput];
         }
+        [self.captureSession commitConfiguration];
+
     }
+    
 }
 
 

+ 1 - 1
LenzSDK.podspec

@@ -8,7 +8,7 @@
 
 Pod::Spec.new do |s|
   s.name             = 'LenzSDK'
-  s.version          = '2.2.10'
+  s.version          = '2.2.11'
   s.summary          = 'A short description of LenzSDK.'
 
 # This description is used to generate tags and improve search results.