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/06/13 02:11:19 UTC

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

Jesse MacFadyen created CB-3783:
-----------------------------------

             Summary: 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: 2.9.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