[ 
https://issues.apache.org/jira/browse/CB-571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filip Maj updated CB-571:
-------------------------

      Description: 
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.

  was:
Creating Media for local audio file with following syntax - 

var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]); //as per 
API doc

throws following error - 

ERROR: Method 'create:withDict:' not defined in Plugin 'Media'

I checked CDVSound.m and there is no createWithDict method.

         Priority: Minor  (was: Major)
    Fix Version/s:     (was: 1.7.0)
         Assignee: Shazron Abdullah  (was: Filip Maj)
       Issue Type: Improvement  (was: Bug)
          Summary: Check that audio file recording to using Media.startRecord 
is of type .wav  (was: Creating new Media object throws error in iOS)

I've made a few tweaks in 
[098ac7|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=098ac7cfe1bc64d06be19ebd2e7cefa8c3b9713c].

First, I stubbed out the "create" method so you should no longer see the error 
in your logs.

Second, I added a check that the file exists, and it should throw an error 
properly now if it doesn't.

I've changed this issue to track the feature of making sure an audio file being 
recorded to on iOS is a .wav file. Lowered the priority and removed a fix 
version as this is more of a "nicety" and we already document the underlying 
platform requirement.
                
> 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 Callback
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 1.6.1
>         Environment: iOS
>            Reporter: Ram Kulkarni
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: ios, media
>
> 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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to