cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpojer <>
Subject incubator-cordova-ios pull request: [CB-1669] Issue an error when media.sta...
Date Thu, 18 Oct 2012 01:34:22 GMT
GitHub user cpojer opened a pull request:

    [CB-1669] Issue an error when media.startRecord() is failing.

    See for reference.
    This change returns an error if the recording cannot be successfully started.
    According to the documentation AVAudioRecorder.record returns a boolean whether the recording
was actually started properly or not (
    Note: I have not been able to reproduce the exact bug in CB-1669. I have used invalid
recording settings and I was able to reproduce the same behavior (title bar turns red, similar
errors in the device log). With this fix, the web app will be informed of recording issues
before stopRecord is being called.
    I haven't written a lot of Obj-C so far, please feel free to comment on my code and let
me know of any other changes that are required for this to go in.

You can merge this pull request into a Git repository by running:

    $ git pull cb-1669

Alternatively you can review and apply these changes as the patch at:

commit 22f0fb9077dfb5604390516634192448c32b3a67
Author: cpojer <>
Date:   2012-10-17T18:27:47-07:00

    [CB-1669] Issue an error when media.startRecord() is failing.


View raw message