cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-3783) Media success handler called multiple times
Date Mon, 19 Aug 2013 23:24:52 GMT

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

Jesse MacFadyen resolved CB-3783.
---------------------------------

    Resolution: Fixed
    
> 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

Mime
View raw message