cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Tiwari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-8299) Camera Plugin does not capture the image.
Date Fri, 16 Jan 2015 06:48:34 GMT

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

Prashant Tiwari updated CB-8299:
--------------------------------
    Description: 
The camera is causing problems for me in iOS 8.1. The camera turns on and it appears to take
the picture. However, the success and failure functions are never called,Instead, the console
shows the following text: 

"Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your
view has been rendered at least once before snapshotting or snapshot after screen updates.

I have used the following code. Please refer the code.
navigator.camera.getPicture(success, fail, {
                                        quality: 50,
                                        destinationType: Camera.DestinationType.FILE_URI,
  encodingType: Camera.EncodingType.JPEG
                                        targetWidth: 960,
                                        targetHeight: 640
                                        });
function success(URL){
 console.log(URL);
}
function fail(){
 console.log("Error");
}

Cordova details.
Cordova 3.5
IOS 8.1
Latest camera plugin.

  was:
The camera is causing problems for me in iOS 8.1. The camera turns on and it appears to take
the picture. However, the success and failure functions are never called,Instead, the console
shows the following text: 

"Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your
view has been rendered at least once before snapshotting or snapshot after screen updates.

I have used the following code. Please refer the code.
navigator.camera.getPicture(success, fail, {
                                        quality: 50,
                                        destinationType: Camera.DestinationType.FILE_URI

                                        });
function success(URL){
 console.log(URL);
}
function fail(){
 console.log("Error");
}

Cordova details.
Cordova 3.5
IOS 8.1
Latest camera plugin.


> Camera Plugin does not capture the image.
> -----------------------------------------
>
>                 Key: CB-8299
>                 URL: https://issues.apache.org/jira/browse/CB-8299
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Prashant Tiwari
>
> The camera is causing problems for me in iOS 8.1. The camera turns on and it appears
to take the picture. However, the success and failure functions are never called,Instead,
the console shows the following text: 
> "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure
your view has been rendered at least once before snapshotting or snapshot after screen updates.
> I have used the following code. Please refer the code.
> navigator.camera.getPicture(success, fail, {
>                                         quality: 50,
>                                         destinationType: Camera.DestinationType.FILE_URI,
>   encodingType: Camera.EncodingType.JPEG
>                                         targetWidth: 960,
>                                         targetHeight: 640
>                                         });
> function success(URL){
>  console.log(URL);
> }
> function fail(){
>  console.log("Error");
> }
> Cordova details.
> Cordova 3.5
> IOS 8.1
> Latest camera plugin.



--
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