Ticket #1565 (closed bug: fixed)
onComplete event fires for all players if multiple players instantiated on a page
| Reported by: | pablo | Owned by: | pablo |
|---|---|---|---|
| Priority: | Low | Milestone: | Player 5.9 |
| Component: | html5 | Keywords: | |
| Cc: | Forum thread: | http://www.longtailvideo.com/support/forums/jw-player/bug-reports/24283/oncomplete-event-with-multiple-players-in-html5 |
Description
From Leon:
Here is a link to a testpage with 2 players preferring html5-mode and 2 players preferring flashmode to also show how it works:
http://lts.dev.dam.digizuite.dk/dmm3bwsv3/embedplayer/test_multiple_autostarts.htm
Here is a version with only the html5-players:
http://lts.dev.dam.digizuite.dk/dmm3bwsv3/embedplayer/test_multiple_autostarts_html5only.htm
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.

Fixed in [2109]