incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (Created) (JIRA)" <>
Subject [jira] [Created] (CB-99) Normalize Media recording in PhoneGap
Date Thu, 01 Dec 2011 20:08:40 GMT
Normalize Media recording in PhoneGap

                 Key: CB-99
             Project: Apache Callback
          Issue Type: Bug
          Components: Android, iOS
    Affects Versions: 1.1.0, 1.0.0, 0.9.6, 0.9.5
            Reporter: Simon MacDonald
            Assignee: Shazron Abdullah

I am trying to record audio in Android and iOS with the following

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 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/

On the other hand, when I use a FileTransfer, I have to provide
file.toURI(), i.e. "file://localhost/var/mobile/Applications/...HEX-

But in the documentation it is claimed that I need an "URI" for ALL
cases, so why do I need file.toURI(), 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:!default.jspa
For more information on JIRA, see:


View raw message