You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/08/15 22:34:38 UTC

[jira] [Created] (CB-1249) Media.startRecord fires the success callback twice

Simon MacDonald created CB-1249:
-----------------------------------

             Summary: Media.startRecord fires the success callback twice
                 Key: CB-1249
                 URL: https://issues.apache.org/jira/browse/CB-1249
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.0.0, 1.9.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
             Fix For: 2.1.0


When you do a Media.startRecord the success callback is invoked twice. The first time the callback is invoked is when you start a record then it is fired a second time when the recorded is finished. Expected behaviour would be for the callback to fire only when the record is finished.

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

        

[jira] [Updated] (CB-1249) Media.startRecord fires the success callback twice

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald updated CB-1249:
--------------------------------

    Component/s:     (was: Android)
                 CordovaJS
    
> Media.startRecord fires the success callback twice
> --------------------------------------------------
>
>                 Key: CB-1249
>                 URL: https://issues.apache.org/jira/browse/CB-1249
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.1.0
>
>
> When you do a Media.startRecord the success callback is invoked twice. The first time the callback is invoked is when you start a record then it is fired a second time when the recorded is finished. Expected behaviour would be for the callback to fire only when the record is finished.

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

        

[jira] [Resolved] (CB-1249) Media.startRecord fires the success callback twice

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-1249.
---------------------------------

    Resolution: Fixed

I've fixed the stop/start methods so they no longer call the success callback directly. Instead we let the onStatus method handle it.
                
> Media.startRecord fires the success callback twice
> --------------------------------------------------
>
>                 Key: CB-1249
>                 URL: https://issues.apache.org/jira/browse/CB-1249
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.9.0, 2.0.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.1.0
>
>
> When you do a Media.startRecord the success callback is invoked twice. The first time the callback is invoked is when you start a record then it is fired a second time when the recorded is finished. Expected behaviour would be for the callback to fire only when the record is finished.

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