Skip to content

Commit

Permalink
Update CDVCamera.m
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk1991 authored Oct 19, 2019
1 parent 5784cdf commit 09e7232
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ios/CDVCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -514,22 +514,6 @@ - (CDVPluginResult*)resultForVideo:(NSDictionary*)info
{

NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] absoluteString];

// NSArray* spliteArray = [moviePath componentsSeparatedByString: @"/"];
// NSString* lastString = [spliteArray lastObject];
// NSUInteger location = [lastString rangeOfString:@"."].location + 1;
// NSString *substring = [lastString substringFromIndex:location];

// NSError *error;
// NSFileManager *fileManager = [NSFileManager defaultManager];
// NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"tmp"];
// NSString *filePath = [documentsDirectory stringByAppendingPathComponent:substring];

// NSURL *videoURL = info[UIImagePickerControllerMediaURL];
// [[NSFileManager defaultManager] copyItemAtURL:videoURL
// toURL:[NSURL fileURLWithPath:filePath]
// error:&error];
// [fileManager copyItemAtPath:moviePath toPath:filePath error:&error];
return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:moviePath];

}
Expand Down

0 comments on commit 09e7232

Please sign in to comment.