You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/05/21 01:49:08 UTC
[3/3] cordova-plugin-camera git commit: one more alias
one more alias
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/b3430e6f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/b3430e6f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/b3430e6f
Branch: refs/heads/master
Commit: b3430e6f80a20d8f271dd14625dc641ee18e855d
Parents: 888a966
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed May 20 16:31:50 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed May 20 16:31:59 2015 -0700
----------------------------------------------------------------------
src/windows/CameraProxy.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/b3430e6f/src/windows/CameraProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/CameraProxy.js b/src/windows/CameraProxy.js
index 6bea8d2..841a077 100644
--- a/src/windows/CameraProxy.js
+++ b/src/windows/CameraProxy.js
@@ -567,19 +567,20 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) {
encodingType = args[5],
allowCrop = !!args[7],
saveToPhotoAlbum = args[9],
- cameraCaptureUI = new Windows.Media.Capture.CameraCaptureUI();
+ WMCapture = Windows.Media.Capture,
+ cameraCaptureUI = new WMCapture.CameraCaptureUI();
cameraCaptureUI.photoSettings.allowCropping = allowCrop;
if (encodingType == Camera.EncodingType.PNG) {
- cameraCaptureUI.photoSettings.format = Windows.Media.Capture.CameraCaptureUIPhotoFormat.png;
+ cameraCaptureUI.photoSettings.format = WMCapture.CameraCaptureUIPhotoFormat.png;
} else {
- cameraCaptureUI.photoSettings.format = Windows.Media.Capture.CameraCaptureUIPhotoFormat.jpeg;
+ cameraCaptureUI.photoSettings.format = WMCapture.CameraCaptureUIPhotoFormat.jpeg;
}
// decide which max pixels should be supported by targetWidth or targetHeight.
var maxRes = null;
- var UIMaxRes = Windows.Media.Capture.CameraCaptureUIMaxPhotoResolution;
+ var UIMaxRes = WMCapture.CameraCaptureUIMaxPhotoResolution;
switch (true) {
case (targetWidth >= 1280 || targetHeight >= 960) :
cameraCaptureUI.photoSettings.maxResolution = UIMaxRes.large3M;
@@ -602,7 +603,7 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) {
cameraCaptureUI.photoSettings.maxResolution = maxRes;
- cameraCaptureUI.captureFileAsync(Windows.Media.Capture.CameraCaptureUIMode.photo).done(function(picture) {
+ cameraCaptureUI.captureFileAsync(WMCapture.CameraCaptureUIMode.photo).done(function(picture) {
if (!picture) {
errorCallback("User didn't capture a photo.");
return;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org