Skip to content

Commit 625f393

Browse files
committed
优化部分代码
1 parent 560ff5e commit 625f393

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

iOS_Tips/DarkMode/SmallVideo/Controller/SLShotViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ - (void)captureTool:(SLAvCaptureTool *)captureTool didFinishRecordingToOutputFil
398398
editViewController.videoPath = outputFileURL;
399399
editViewController.modalPresentationStyle = UIModalPresentationFullScreen;
400400
[self presentViewController:editViewController animated:NO completion:nil];
401+
402+
NSInteger fileSize = (NSInteger)[[NSFileManager defaultManager] attributesOfItemAtPath:outputFileURL.path error:nil].fileSize;
403+
NSLog(@"视频文件大小 === %fM",fileSize/(1024.0*1024.0));
401404
}
402405

403406

0 commit comments

Comments
 (0)