guillem-sopra commented on a change in pull request #549: fix(ios): handle 
video transcoding cancel exception
URL: 
https://github.com/apache/cordova-plugin-camera/pull/549#discussion_r407197320
 
 

 ##########
 File path: src/ios/CDVCamera.m
 ##########
 @@ -512,8 +512,13 @@ - (void)resultForImage:(CDVPictureOptions*)options 
info:(NSDictionary*)info comp
 
 - (CDVPluginResult*)resultForVideo:(NSDictionary*)info
 {
-    NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] 
absoluteString];
-    return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK 
messageAsString:moviePath];
+    @try {
+        NSString* moviePath = [[info 
objectForKey:UIImagePickerControllerMediaURL] absoluteString];
+        return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK 
messageAsString:moviePath];
+    } @catch (NSException *exception) {
+        NSLog(@"Camera.resultForVideo: error retrieving file path");
+        return [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR 
messageAsString:@""];
 
 Review comment:
   Sorry for the late response, I left the company I was working in at the time 
and lost the email account, and also access to this github account. All should 
be fine now

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to