From callback-dev-return-4298-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Tue Apr 3 17:12:45 2012 Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E60F9046 for ; Tue, 3 Apr 2012 17:12:45 +0000 (UTC) Received: (qmail 63553 invoked by uid 500); 3 Apr 2012 17:12:45 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 63506 invoked by uid 500); 3 Apr 2012 17:12:45 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 63496 invoked by uid 99); 3 Apr 2012 17:12:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 17:12:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 17:12:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7AC44356CB3 for ; Tue, 3 Apr 2012 17:12:23 +0000 (UTC) Date: Tue, 3 Apr 2012 17:12:23 +0000 (UTC) From: "Simon MacDonald (Resolved) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1668817675.7164.1333473143589.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <371928079.6852.1333469665385.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CB-426) camera.getPicture ignores mediaType in 1.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon MacDonald resolved CB-426. -------------------------------- Resolution: Fixed Fix Version/s: 1.6.0 The JS side was not passing the mediaType parameter to the native side. I added it back in as a list of arguments. > camera.getPicture ignores mediaType in 1.5 > ------------------------------------------ > > Key: CB-426 > URL: https://issues.apache.org/jira/browse/CB-426 > Project: Apache Callback > Issue Type: Bug > Components: Android > Affects Versions: 1.5.0 > Environment: Android 2.1 (Virtual), Android 3.1 (Motorolla Xoom). Built from Windows 7. > Reporter: Emiliano Angelini > Assignee: Simon MacDonald > Labels: Upload, Video, mediaType > Fix For: 1.6.0 > > > Hi, > I was using getPicture to upload videos, but when I upgraded to cordova-1.5.0 I noticed that the only files that I was able to select where pictures instead of videos. > The Call I was doing is this one: navigator.camera.getPicture(onVideoURISuccess, onVideoURIFail, { quality:50, mediaType: Camera.MediaType.VIDEO, destinationType: _destinationType.FILE_URI, sourceType: source}); > When I was using 1.4.1 the result was getting a list of videos from the gallery. Since I installed 1.5.0 I could only select images. > A code similar to what I was using is this one: > http://stackoverflow.com/questions/8940058/phonegap-crash-when-using-file-transfer-for-uploading-video-larger-than-15mb > > > > Video Uploader > > > > > > > > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira