diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index 2f2738b57..393f1a8c3 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -279,7 +279,7 @@ - (void)displayPopover:(NSDictionary*)options - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { if([navigationController isKindOfClass:[UIImagePickerController class]]){ - + // If popoverWidth and popoverHeight are specified and are greater than 0, then set popover size, else use apple's default popoverSize NSDictionary* options = self.pickerController.pictureOptions.popoverOptions; if(options) { @@ -290,8 +290,8 @@ - (void)navigationController:(UINavigationController *)navigationController will [viewController setPreferredContentSize:CGSizeMake(popoverWidth,popoverHeight)]; } } - - + + UIImagePickerController* cameraPicker = (UIImagePickerController*)navigationController; if(![cameraPicker.mediaTypes containsObject:(NSString*)kUTTypeImage]){ @@ -743,6 +743,9 @@ + (instancetype) createFromPictureOptions:(CDVPictureOptions*)pictureOptions; NSArray* mediaArray = @[(NSString*)(pictureOptions.mediaType == MediaTypeVideo ? kUTTypeMovie : kUTTypeImage)]; cameraPicker.mediaTypes = mediaArray; } + if (@available(iOS 11.0, *)) { + cameraPicker.videoExportPreset = AVAssetExportPreset1920x1080; //full hd + } return cameraPicker; }