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/17 17:31:38 UTC

[jira] [Created] (CB-1255) Media.stop calls the success callback twice.

Simon MacDonald created CB-1255:
-----------------------------------

             Summary: Media.stop calls the success callback twice.
                 Key: CB-1255
                 URL: https://issues.apache.org/jira/browse/CB-1255
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 2.0.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
             Fix For: 2.1.0


* I create a Media object to playback a recording, then let it play until the end - the success callback is invoked once.

* If I call the 'stop' method on the playing media object *before* it has finished, then the 'onSuccess' is called *twice* when 'stop' is called

--
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-1255) Media.stop calls the success callback twice.

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

Simon MacDonald resolved CB-1255.
---------------------------------

    Resolution: Fixed

I took the call to the success callback out of Media.stop. Just letting the Media.onStatus method handle calling the success callback when it gets a status of STOPPED.
                
> Media.stop calls the success callback twice.
> --------------------------------------------
>
>                 Key: CB-1255
>                 URL: https://issues.apache.org/jira/browse/CB-1255
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 2.0.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.1.0
>
>
> * I create a Media object to playback a recording, then let it play until the end - the success callback is invoked once.
> * If I call the 'stop' method on the playing media object *before* it has finished, then the 'onSuccess' is called *twice* when 'stop' is called

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