lxy 1 year ago
parent
commit
438dcaa8e0

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

@@ -213,7 +213,7 @@
         self.safeBottom.constant = 0;
     }
     
-    [self.timerLabel updateWith:100];
+    [self.timerLabel updateWith:0];
     
     self.albumButton.layer.cornerRadius = 6;
     self.albumButton.clipsToBounds = YES;
@@ -1400,7 +1400,9 @@
     [camera unlockForConfiguration];
     [self.recordTimer invalidate];
     self.recordTimer = nil;
-    [self.timerLabel updateWith:0];
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [self.timerLabel updateWith:0];
+    });
 }
 
 - (BOOL)startVideoDataOutputing{
@@ -2896,8 +2898,9 @@
 #pragma mark - AVCaptureFileOutputRecordingDelegate
 - (void)captureOutput:(AVCaptureFileOutput *)output didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL fromConnections:(NSArray<AVCaptureConnection *> *)connections error:(NSError *)error{
     //视频录制
-    [self.timerLabel updateWith:0];
-
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [self.timerLabel updateWith:0];
+    });
     BOOL recordedSuccessfully = YES;
     if(error.code == AVErrorMaximumDurationReached){
     } else if (error.code == AVErrorDiskFull){

+ 1 - 1
LenzSDK.podspec

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