lxy 1 year ago
parent
commit
07eb38e52d

+ 0 - 9
LenzCameraNativeModuleForRN/Classes/inner/OperationNode/OperationNodeAIPanorama.m

@@ -55,15 +55,6 @@
 - (BOOL)start{
     [super start];
     BOOL ret = [self.controller startVideoDataOutputing];
-    if(ret){
-        self.controller.panoramaGuideView.hidden = NO;
-//        self.controller.panoramOrientationGuideView.selectedItemIndex = PanoramaOrientationViewLeft;
-        if ([self.controller.panoramOrientationGuideView.delegate respondsToSelector:@selector(panoramDirDidChange)]) {
-            [self.controller.panoramOrientationGuideView.delegate panoramDirDidChange];
-        }
-//        [self.controller panoramaOrientationViewslt:PanoramaOrientationViewLeft];
-//        self.controller.panoramOrientationGuideView.hidden = NO;
-    }
     return ret;
 }
 

+ 6 - 0
LenzCameraNativeModuleForRN/Classes/inner/OperationNode/OperationNodeVideoBase.m

@@ -55,6 +55,12 @@
     self.controller.isVideoStitchStopedWhenRecording = NO;
     self.isRecording = updatedRecording && [self start];
 
+    if(self.isRecording){
+        if ([self.controller.panoramOrientationGuideView.delegate respondsToSelector:@selector(panoramDirDidChange)]) {
+            [self.controller.panoramOrientationGuideView.delegate panoramDirDidChange];
+        }
+    }
+    
     self.controller.panGesture.enabled = !self.isRecording;
     self.controller.timerLabel.backgroundColor = !self.isRecording ? [UIColor clearColor] : [PCSThemeColorManager orange];
     [self updateTakePhotoButtonStatus];