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 011BA9DAE for ; Tue, 6 Mar 2012 19:08:19 +0000 (UTC) Received: (qmail 87365 invoked by uid 500); 6 Mar 2012 19:08:19 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 87343 invoked by uid 500); 6 Mar 2012 19:08:19 -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 87334 invoked by uid 99); 6 Mar 2012 19:08:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 19:08:19 +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, 06 Mar 2012 19:08:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 62126B004 for ; Tue, 6 Mar 2012 19:07:58 +0000 (UTC) Date: Tue, 6 Mar 2012 19:07:58 +0000 (UTC) From: "Shazron Abdullah (Resolved) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <831273312.28709.1331060878403.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1259958790.32178.1322770120413.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CB-99) Normalize Media recording in PhoneGap 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-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-99. -------------------------------- Resolution: Duplicate > Normalize Media recording in PhoneGap > ------------------------------------- > > Key: CB-99 > URL: https://issues.apache.org/jira/browse/CB-99 > Project: Apache Callback > Issue Type: Bug > Components: Android, iOS > Affects Versions: 0.9.5, 0.9.6, 1.0.0, 1.1.0 > Reporter: Simon MacDonald > Assignee: Shazron Abdullah > > I am trying to record audio in Android and iOS with the following > code: > window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, > onFileSystemSuccess, onError); > ... > fileSystem.root.getFile(filename, function onSuccess(file) > {...},onError) //create a FileEntry (onFileSystemSuccess handler) > ... > mediaObj = new Media(file, onSuccess, onError); //create MediaObject > (in onSuccess handler) > But it seems that there is a difference between Android and iOS. In > Android I need to pass file.name and in iOS file.fullPath. > So Android needs only the filename like "file.ext" and iOS needs a > path like "/var/mobile/Applications/...HEX-APPID.../Documents/ > file.ext". > On the other hand, when I use a FileTransfer, I have to provide > file.toURI(), i.e. "file://localhost/var/mobile/Applications/...HEX- > APPID.../Documents/file.ext". > But in the documentation it is claimed that I need an "URI" for ALL > cases, so why do I need file.toURI(), file.name or file.fullPath > depending on OS and function? Am I missing something? -- 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