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

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Wed Jul 3 11:11:21 EDT 2013


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

Vlado Pakan commented on JBIDE-14894:
-------------------------------------

Menu Capture > Capture Video doesn't work. Is it part of this issue?

When imported cordova-mega-demo project to JBT 4.1.0.CR1-v20130701-1919-B372 there are 3 errors in jquery-1.6.4.min.js:

Syntax error on token "Invalid Regular Expression Options", no accurate correction available
Syntax error, insert "}" to complete ObjectLiteral
Syntax error, insert ")" to complete Arguments

How this can be fixed?

                
> 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