You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "John Sim (JIRA)" <ji...@apache.org> on 2014/04/04 11:40:14 UTC
[jira] [Updated] (CB-6403) Google Glass Android 4.0.4
[ 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:title=test}
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:
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.
> 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:title=test}
> 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)