lxy 1 year ago
parent
commit
684b045abc

+ 4 - 1
LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSBaseViewController.m

@@ -1452,6 +1452,7 @@
             CGFloat aspect = isFront ? cameraMgr.frontAspect : cameraMgr.backAspect;
             aspect = isLandscape ? 1.0 / aspect : aspect;
             [self.videoDataOutput setSampleBufferDelegate:self queue:self.videoDataQueue];
+            [self.captureSession startRunning];
             ret = YES;
         }
     });
@@ -1472,8 +1473,10 @@
     self.motionTimer = nil;
     [[NSNotificationCenter defaultCenter] removeObserver:self name:PCS_NotificationNameOrientationDidChange object:nil];
     dispatch_async(self.videoDataQueue, ^{
+
         [self.videoDataOutput setSampleBufferDelegate:nil queue:nil];
-        [Renderer shared].cameraPass.texture = nil;
+        [self.captureSession stopRunning];
+//        [Renderer shared].cameraPass.texture = nil;
     });
     [self stopMotion];
     [self.panoramaGuideView showImageWith:nil];

+ 1 - 1
LenzSDK.podspec

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