[jbosstools-issues] [JBoss JIRA] (JBIDE-14894) CordovaSim: Camera API isn't properly emulated with Camera.DestinationType = DATA_URL

Ilya Buziuk (JIRA) jira-events at lists.jboss.org
Tue Jun 25 05:16:21 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784250#comment-12784250 ] 

Ilya Buziuk edited comment on JBIDE-14894 at 6/25/13 5:16 AM:
--------------------------------------------------------------

Probably, the best way of testing would be cloning that repository - git at github.com:ibuziuk/cordova-mega-demo.git (I've forked and fixed several mistakes).

Steps for verifying:
1. create new Hybrid Mobile (Cordova) Application Project
2. delete everything from "www" folder
3. clone this demo - git at github.com:ibuziuk/cordova-mega-demo.git
4. copy everything from the following folder (cordova-maga-demo -> assets -> www) into an empty "www" folder of the newly created project
5. all samples should work (including camera API should work) - !camera.png|thumbnail!

Also there are dozens of good samples in PhoneGap API Documentation - http://docs.phonegap.com/en/2.8.0/index.html, you could also give it a go. 
                
      was (Author: ibuziuk):
    Probably, the best way of testing would be cloning that repository - git at github.com:ibuziuk/cordova-mega-demo.git (I've forked and fixed several mistakes).

Steps for verifying:
1. create new Hybrid Mobile (Cordova) Application Project
2. delete everything from "www" folder
3. clone this demo - git at github.com:ibuziuk/cordova-mega-demo.git
4. copy everything from the following folder (cordova-maga-demo -> assets -> www) into an empty "www" folder of the newly created project
5. all samples should work (including camera API should work) - !camera.png|thumbnail!


                  
> CordovaSim: Camera API isn't properly emulated with Camera.DestinationType = DATA_URL
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-14894
>                 URL: https://issues.jboss.org/browse/JBIDE-14894
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: browsersim
>            Reporter: Ilya Buziuk
>            Assignee: Ilya Buziuk
>             Fix For: 4.1.0.CR1
>
>         Attachments: camera.png
>
>
> DestinationType=DataUrl returns image as base64 (image.src = "data:image/jpeg;base64," + imageData).So, there is a need in encoding imageURL in base 64 in that particular case.
> Camera API : http://docs.phonegap.com/en/2.8.0/cordova_camera_camera.md.html#Camera

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list