Updated Branches:
  refs/heads/master 4bad0e546 -> 1c9ce2a03

[CB-1499] use of Camera in Cordova video mode results in field of view 
different than in native video mode


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/1c9ce2a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/1c9ce2a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/1c9ce2a0

Branch: refs/heads/master
Commit: 1c9ce2a038d234b47957287c4aac7217ec7ed243
Parents: 4bad0e5
Author: Shazron Abdullah <shaz...@apache.org>
Authored: Wed Sep 19 16:53:59 2012 -0700
Committer: Shazron Abdullah <shaz...@apache.org>
Committed: Wed Sep 19 16:53:59 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVCapture.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/1c9ce2a0/CordovaLib/Classes/CDVCapture.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCapture.m b/CordovaLib/Classes/CDVCapture.m
index 4703dac..7a57219 100644
--- a/CordovaLib/Classes/CDVCapture.m
+++ b/CordovaLib/Classes/CDVCapture.m
@@ -241,8 +241,9 @@
              
         
         // iOS 4.0 
-        if ([UIImagePickerController 
respondsToSelector:@selector(cameraCaptureMode)]) {
+        if ([pickerController 
respondsToSelector:@selector(cameraCaptureMode)]) {
             pickerController.cameraCaptureMode = 
UIImagePickerControllerCameraCaptureModeVideo;
+            pickerController.videoQuality = 
UIImagePickerControllerQualityTypeHigh;
             //pickerController.cameraDevice = 
UIImagePickerControllerCameraDeviceRear;
             //pickerController.cameraFlashMode = 
UIImagePickerControllerCameraFlashModeAuto;
         }

Reply via email to