You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2013/07/19 06:14:48 UTC

[jira] [Updated] (CB-3783) Media success handler called multiple times

     [ https://issues.apache.org/jira/browse/CB-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen updated CB-3783:
--------------------------------

    Fix Version/s:     (was: 3.0.0)
                   3.1.0
    
> Media success handler called multiple times
> -------------------------------------------
>
>                 Key: CB-3783
>                 URL: https://issues.apache.org/jira/browse/CB-3783
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7, WP8
>    Affects Versions: 2.8.0
>            Reporter: Jesse MacFadyen
>            Assignee: Jesse MacFadyen
>            Priority: Critical
>             Fix For: 3.1.0
>
>
> If you write code like this: 
> {code:javascript}
> my_media = new Media("www/zephyr.wav", onplaySuccess, onplayError);
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> my_media.play();
> {code}
> You will soon notice that the success handler is called for every media.play call.  This also can happen over time ( more relevant use case )
> Eventually, there can be so many event delegates that the app crashes.

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