incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1669) Media.startRecord() is sometimes failing
Date Wed, 17 Oct 2012 21:22:03 GMT

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

Shazron Abdullah commented on CB-1669:
--------------------------------------

My early hunch is it is a memory purge, thus all existing recording instances are null: https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVSound.m#L531

But it could also be that initializing the AVAudioRecorder failed immediately, but our code
doesn't handle the failure and report back, thus having the appearance that it can still record.
                
> Media.startRecord() is sometimes failing
> ----------------------------------------
>
>                 Key: CB-1669
>                 URL: https://issues.apache.org/jira/browse/CB-1669
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Christoph Pojer
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.3.0
>
>
> Using media.startRecord() sometimes fails in about 5 % of the cases.
> When calling media.startRecord() the status bar turns red and the WebView moves down
a few pixels but it immediately reverts to normal after a second. No additional errors are
visible in the log. When calling media.stopRecord() the recorded file is empty.
> This has happened to me both using a fresh install (first recording) or during continued
application use.
> The normal behavior does *not* turn the status bar red, media.stopRecord() produces a
valid audio file that I can play back.
> This error is especially problematic because the user only notices the issue after he
has stopped recording.

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

Mime
View raw message