Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dz_TZImagePickerController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuijing
dz_TZImagePickerController
Commits
0bdf20e8
Commit
0bdf20e8
authored
Jul 13, 2016
by
Zhen Tan
Committed by
GitHub
Jul 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #130 from ccoding2015/master
部分手机出现无法拷贝视频的问题,报错:AVAssetExportSessionStatusFailed
parents
1948057f
485e27c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
TZImagePickerController/TZImagePickerController/TZImageManager.m
...PickerController/TZImagePickerController/TZImageManager.m
+4
-0
No files found.
TZImagePickerController/TZImagePickerController/TZImageManager.m
View file @
0bdf20e8
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment