|
@@ -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];
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|