[ 
https://issues.apache.org/jira/browse/CB-571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572181#comment-13572181
 ] 

Andrew Grieve commented on CB-571:
----------------------------------

I don't love android's behaviour here, because there's no way to discover the 
full path to the file you've just created. That said, if you want to keep the 
file (not have it in the cache dir), then arguably you should just use an 
absolute URL as an argument anyways.

Since this is already the behaviour on Android, I think it's too late to change 
(outside of our grand API audit). I think the equivalent on iOS would be to put 
the file in the <Application_Home>/tmp directory. If they want to keep the 
file, or save it in the Documents directory, then they should use a full URL.


                
> Check that audio file recording to using Media.startRecord is of type .wav
> --------------------------------------------------------------------------
>
>                 Key: CB-571
>                 URL: https://issues.apache.org/jira/browse/CB-571
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: iOS
>            Reporter: Ram Kulkarni
>            Assignee: Becky Gibson
>            Priority: Minor
>              Labels: ios, media
>             Fix For: 2.5.0
>
>
> As we document in {{startRecord}} on our [docs 
> page|http://docs.phonegap.com/en/1.6.1/cordova_media_media.md.html#media.startRecord],
>  when recording audio in iOS, you need to make sure the file exists and that 
> it is of type .wav.
> It would be nice if the {{startRecordingAudio}} method in CDVSound.m checked 
> that the requested file to record to is of the right type, and throw an error 
> if it is not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to