You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kirill Anoshin (JIRA)" <ji...@apache.org> on 2015/12/10 13:11:11 UTC
[jira] [Updated] (CB-10177) Camera Plugin unable to choose video
from gallery
[ https://issues.apache.org/jira/browse/CB-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kirill Anoshin updated CB-10177:
--------------------------------
Description:
navigator.camera.getPicture(function(path) {
_this.CreateFile(_this.PreparePath(path, false), online).then(function(file) {
deferred.resolve(file);
});
}, onError, {
quality: 75,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
popoverOptions: new CameraPopoverOptions(position.left, position.top),
mediaType: Camera.MediaType.PICTURE
});
was:
If you try to run the following code, you will always receive empty string as a path:
{code}
navigator.camera.getPicture(function(path) {
...
}, onError, {
quality: 75,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
popoverOptions: new CameraPopoverOptions(position.left, position.top),
mediaType: Camera.MediaType.PICTURE
});
{code}
> Camera Plugin unable to choose video from gallery
> -------------------------------------------------
>
> Key: CB-10177
> URL: https://issues.apache.org/jira/browse/CB-10177
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: Android 4.4, Android 6
> Reporter: Kirill Anoshin
>
> navigator.camera.getPicture(function(path) {
> _this.CreateFile(_this.PreparePath(path, false), online).then(function(file) {
> deferred.resolve(file);
> });
> }, onError, {
> quality: 75,
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
> encodingType: Camera.EncodingType.JPEG,
> popoverOptions: new CameraPopoverOptions(position.left, position.top),
> mediaType: Camera.MediaType.PICTURE
> });
--
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