Ticket #1565 (closed bug: fixed)
onComplete event fires for all players if multiple players instantiated on a page
|Reported by:||pablo||Owned by:||pablo|
Here is a link to a testpage with 2 players preferring html5-mode and 2 players preferring flashmode to also show how it works:
Here is a version with only the html5-players:
You can test with Firefox or Safari (both will respect the order of preference set in the 'modes' parameter). I'm currently not sure about other browsers. I recommend using Firefox with firebug as you can see me printing events in the console. Notice the guids that i use to make players unique. With the 'ready' event things happen as they should but with the 'complete' event things get messed up. Sometimes it actually works right after the first playthrough. To make sure it happens pause 1 player 2 seconds and then play again.