[ 
https://issues.apache.org/jira/browse/CB-10270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15145495#comment-15145495
 ] 

ASF GitHub Bot commented on CB-10270:
-------------------------------------

Github user TanaseButcaru commented on the pull request:

    
https://github.com/apache/cordova-plugin-camera/pull/160#issuecomment-183518294
  
    I can confirm this is working for picture selection.
    @shahin8r you could use this commit to [prevent empty video content 
uri](https://github.com/TanaseButcaru/cordova-plugin-camera/commit/e032811c1cf2b382f8576d92cb04e41e0193e221)
 in case ``getRealPath`` fails to resolve it. You can test my ``unofficial`` 
branch.
    
    The combination between this, my commit for video empty uri & the 
[cordova-plugin-filepath](https://github.com/hiddentao/cordova-plugin-filepath) 
plugin is the best workaround at the moment to get ``file://`` uri for selected 
media file.


> camera.getPicture() returns an empty string
> -------------------------------------------
>
>                 Key: CB-10270
>                 URL: https://issues.apache.org/jira/browse/CB-10270
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.1.0
>         Environment: Android 4.4.2 (api 19)
>            Reporter: Alexander Sorokin
>            Assignee: Richard B Knoll
>              Labels: android, reproduced, triaged
>         Attachments: mobilespec-camera.7z
>
>
> Code sample to reproduce:
> {code}
> navigator.camera.getPicture(onSuccess, onFail, { 
>     destinationType: Camera.DestinationType.FILE_URI,
>     sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
>     correctOrientation: true
> });
> {code}
> {{onSuccess}} is called with an empty string as an argument.
> if {{correctOrientation}} is {{false}}, everything works as expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to