Commit 0bdf20e8 authored by Zhen Tan's avatar Zhen Tan Committed by GitHub

Merge pull request #130 from ccoding2015/master

部分手机出现无法拷贝视频的问题,报错:AVAssetExportSessionStatusFailed
parents 1948057f 485e27c9
...@@ -567,6 +567,10 @@ static CGFloat TZScreenScale; ...@@ -567,6 +567,10 @@ static CGFloat TZScreenScale;
session.outputFileType = [supportedTypeArray objectAtIndex:0]; session.outputFileType = [supportedTypeArray objectAtIndex:0];
} }
if (![[NSFileManager defaultManager] fileExistsAtPath:[NSHomeDirectory() stringByAppendingFormat:@"/tmp"]]) {
[[NSFileManager defaultManager] createDirectoryAtPath:[NSHomeDirectory() stringByAppendingFormat:@"/tmp"] withIntermediateDirectories:YES attributes:nil error:nil];
}
// Begin to export video to the output path asynchronously. // Begin to export video to the output path asynchronously.
[session exportAsynchronouslyWithCompletionHandler:^(void) { [session exportAsynchronouslyWithCompletionHandler:^(void) {
switch (session.status) { switch (session.status) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment