[ 
https://issues.apache.org/jira/browse/CB-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13726767#comment-13726767
 ] 

ASF subversion and git services commented on CB-3783:
-----------------------------------------------------

Commit a210997365aa4b48e040233c9ff49c53a70fca79 in branch refs/heads/master 
from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=a210997 ]

[wp][CB-3783] All api calls maintain the callbackID to prevent issues with 
overlapping calls.

                
> 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

Reply via email to