[ 
https://issues.apache.org/jira/browse/CB-6403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sim updated CB-6403:
-------------------------

    Description: 
The camera pops up takes the picture in the glass viewport but when I tap to go 
back into the app the image does not display.

{code:title=Error Message in Chrome inspect}
Error capturing image. 
navigator.camera.getPicture.quality 

cordova.callbackFromNative cordova.js:294
processMessage cordova.js:1029
androidExec.processMessages cordova.js:1063
pollOnce cordova.js:933
pollOnceFromOnlineEvent cordova.js:928
{code}

{code:javascript}
                        navigator.camera.getPicture(function(imageData) {
                                var image = $('#FB-image');
                                image.attr('src','data:image/jpeg;base64,' + 
imageData);
                        }, function(err) {
                                console.error(err);
                        }, {
                                quality: 50,
                                destinationType: Camera.DestinationType.DATA_URL
                        });
{code}

When removing quality and then issue moves onto destinationType.
I have tried lowering and changing the values but still errors.

Tested and code works fine on Android 4.4 kitKat Samsung S3.


  was:
Error capturing image. 
navigator.camera.getPicture.quality 

cordova.callbackFromNative cordova.js:294
processMessage cordova.js:1029
androidExec.processMessages cordova.js:1063
pollOnce cordova.js:933
pollOnceFromOnlineEvent cordova.js:928

{code:javascript}
                        navigator.camera.getPicture(function(imageData) {
                                var image = $('#FB-image');
                                image.attr('src','data:image/jpeg;base64,' + 
imageData);
                        }, function(err) {
                                console.error(err);
                        }, {
                                quality: 50,
                                destinationType: Camera.DestinationType.DATA_URL
                        });

{code}

When removing quality and then issue moves onto destinationType.
have tried lowering and changing the values but still errors.

Tested and code works fine on Android 4.4 kitKat Samsung S3.



> Google Glass Android 4.0.4
> --------------------------
>
>                 Key: CB-6403
>                 URL: https://issues.apache.org/jira/browse/CB-6403
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 3.3.0
>         Environment: Google Glass
>            Reporter: John Sim
>
> The camera pops up takes the picture in the glass viewport but when I tap to 
> go back into the app the image does not display.
> {code:title=Error Message in Chrome inspect}
> Error capturing image. 
> navigator.camera.getPicture.quality 
> cordova.callbackFromNative cordova.js:294
> processMessage cordova.js:1029
> androidExec.processMessages cordova.js:1063
> pollOnce cordova.js:933
> pollOnceFromOnlineEvent cordova.js:928
> {code}
> {code:javascript}
>                       navigator.camera.getPicture(function(imageData) {
>                               var image = $('#FB-image');
>                               image.attr('src','data:image/jpeg;base64,' + 
> imageData);
>                       }, function(err) {
>                               console.error(err);
>                       }, {
>                               quality: 50,
>                               destinationType: Camera.DestinationType.DATA_URL
>                       });
> {code}
> When removing quality and then issue moves onto destinationType.
> I have tried lowering and changing the values but still errors.
> Tested and code works fine on Android 4.4 kitKat Samsung S3.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to