cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8404) [Windows] Camera image rotates when device is used in landscape mode
Date Mon, 20 Apr 2015 17:20:00 GMT

    [ https://issues.apache.org/jira/browse/CB-8404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503238#comment-14503238
] 

ASF GitHub Bot commented on CB-8404:
------------------------------------

Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/88#discussion_r28708793
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -310,29 +319,50 @@ function takePictureFromCameraWP(successCallback, errorCallback,
args) {
     
             tempFolder.createFileAsync(fileName, generateUniqueCollisionOption)
                 .then(function(tempCapturedFile) {
    -                capturedFile = tempCapturedFile;
    -                return capture.capturePhotoToStorageFileAsync(encodingProperties, capturedFile);
    +                return new WinJS.Promise(function (complete) {
    +                    var imgStream = new Windows.Storage.Streams.InMemoryRandomAccessStream();
    --- End diff --
    
    Same needs to be done for `fileStream`.


> [Windows] Camera image rotates when device is used in landscape mode
> --------------------------------------------------------------------
>
>                 Key: CB-8404
>                 URL: https://issues.apache.org/jira/browse/CB-8404
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera, Windows
>    Affects Versions: 3.4.0
>         Environment: Windows Phone 8.1 - Nokia Lumia 735
>            Reporter: Olivier VERMONT
>
> When using the camera plugin on a Windows Phone 8.1 device (Nokia Lumia 735) in my case
every thing is fine in portrait mode but when I change device orientation to landscape, the
camera image rotates aswell which give a 90 degree offset regardless to what is being viewed.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message