|
@@ -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){
|