Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E020518BA3 for ; Tue, 22 Dec 2015 06:12:46 +0000 (UTC) Received: (qmail 79818 invoked by uid 500); 22 Dec 2015 06:12:46 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 79787 invoked by uid 500); 22 Dec 2015 06:12:46 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 79757 invoked by uid 99); 22 Dec 2015 06:12:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2015 06:12:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9D6C52C1F4E for ; Tue, 22 Dec 2015 06:12:46 +0000 (UTC) Date: Tue, 22 Dec 2015 06:12:46 +0000 (UTC) From: "Omar Mefire (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-10223) Camera.getPicture returns null in SuccessCallback if using video from iCloud MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15067601#comment-15067601 ] Omar Mefire edited comment on CB-10223 at 12/22/15 6:11 AM: ------------------------------------------------------------ I think it's impossible to return a FILE_URI in this case because the video is on a remote system (iCloud). Instead of throwing an exception, we just return null here, which seems appropriate. was (Author: omefire): I think it's impossible to return a FILE_URI in this case because the video is on a remote system. Instead of throwing an exception, we just return null here, which seems appropriate. > Camera.getPicture returns null in SuccessCallback if using video from iCloud > ---------------------------------------------------------------------------- > > Key: CB-10223 > URL: https://issues.apache.org/jira/browse/CB-10223 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Affects Versions: 5.2.0 > Environment: iOS 9.1, iphone 5 > Reporter: Mikle > > When client tries to upload video from his iCloud he gets null in SuccessCallback. It is really frustrating that user can see videos from iCloud but plugin can not get path of remote video. Probably if there is video that plugin can see but cant get file_uri of that video it would be great idea that user should not see this video at all. Here is my code example: > function onSuccess(videoURI) { > alert('videoURI:' + videoURI) > // here i get null > if (device.platform === 'iOS'){ > > }else{ > /** > * Android branch > * > */ > > } > } > navigator.camera.getPicture(onSuccess, deferred.reject, { > quality: 90, > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM, > mediaType: Camera.MediaType.VIDEO > }); > Plugin version is 1.2.0 -- 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