incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Walters <>
Subject Re: Media.startRecord behavior - should it create the file?
Date Mon, 04 Jun 2012 20:26:48 GMT
BlackBerry Smartphone:

1.) Yes, BlackBerry creates the media file.
2.) It is created at the path specified.
3.) Like Android, doesn't return an error if the file can't be

+1 to moving to W3C Audio API.

On Mon, Jun 4, 2012 at 3:05 PM, Simon MacDonald
<> wrote:
> Android:
> 1) Yes, Android creates the media file.
> 2) It is hard coded to "/sdcard" which is horrible. I may fix that in 1.8
> for it to check for external storage and use the default directory which
> would be "/sdcard" but at least it would check to see if the SD card is
> mounted.
> 3) It doesn't return an error if the path doesn't exist which I should fix.
> Honestly at this point I think we need to look at abandoning the Media API
> in 2.0 and standardize on the Audio API. That is implement the W3C Audio
> spec for platforms, like Android, that don't support it very well. Now that
> we have the Capture API people can do audio recording via that API and
> there is really no reason to keep this non-standard API around if we can
> provide a standard compliant Audio API.
> Simon Mac Donald
> On Mon, Jun 4, 2012 at 3:54 PM, Becky Gibson <> wrote:
>> On iOS the file to record to in Medis.startRecord must exist.   Since the
>> other platforms don't specify in the docs that the user must create the
>> file for recording, I assume the file is created.
>> With the platform maintainers please confirm:
>> 1) is the src file for Media.startRecord created if it does not exist?
>> 2) If it is created, what directory is it created in?
>> 3) What error is returned if the provided file path is not valid?  not
>> writable?  is "www/fileName"?
>> Should iOS update to match the other platforms for 1.9 (assuming there is
>> already some consistency in the other platforms)?  I think we talked about
>> overhauling Media and Camera for 2.0, if so, the iOS changes could wait
>> until then.
>> thanks,
>> -becky

View raw message