[
https://issues.apache.org/jira/browse/CB-8404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503223#comment-14503223
]
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_r28708275
--- 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 --
imgStream.close() needs to be invoked once you are done using it to release
system resources. It needs to be part of the success and error case.
> [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: [email protected]
For additional commands, e-mail: [email protected]