Merge pull request #239 from corbt/faster-video

Faster video file processing
This commit is contained in:
Zack Story 2016-04-02 18:52:55 -07:00
commit e1b319ed2a
1 changed files with 4 additions and 4 deletions

View File

@ -689,8 +689,8 @@ didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL
NSFileManager * fileManager = [NSFileManager defaultManager];
NSError * error = nil;
//copying destination
if (!([fileManager copyItemAtPath:[outputFileURL path] toPath:fullPath error:&error])) {
//moving to destination
if (!([fileManager moveItemAtPath:[outputFileURL path] toPath:fullPath error:&error])) {
self.videoReject(RCTErrorUnspecified, nil, RCTErrorWithMessage(error.description));
return;
}
@ -703,8 +703,8 @@ didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL
NSFileManager * fileManager = [NSFileManager defaultManager];
NSError * error = nil;
//copying destination
if (!([fileManager copyItemAtPath:[outputFileURL path] toPath:fullPath error:&error])) {
//moving to destination
if (!([fileManager moveItemAtPath:[outputFileURL path] toPath:fullPath error:&error])) {
self.videoReject(RCTErrorUnspecified, nil, RCTErrorWithMessage(error.description));
return;
}