[
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