Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js |
— | — | @@ -150,9 +150,9 @@ |
151 | 151 | 'previewMode' : false, |
152 | 152 | |
153 | 153 | // If the player is done loading ( does not guarantee playability ) |
154 | | - // for example if there is an error doneLoading is still set to true once |
| 154 | + // for example if there is an error playerReady is still set to true once |
155 | 155 | // no more loading is to be done |
156 | | - 'doneLoading' : false, |
| 156 | + 'playerReady' : false, |
157 | 157 | |
158 | 158 | // Stores the loading errors |
159 | 159 | 'loadError' : false, |
— | — | @@ -873,8 +873,8 @@ |
874 | 874 | // Update temporal url if present |
875 | 875 | this.updateTemporalUrl(); |
876 | 876 | |
877 | | - // updat the doneLoading flag |
878 | | - this.doneLoading = true; |
| 877 | + // Update the playerReady flag |
| 878 | + this.playerReady = true; |
879 | 879 | // trigger the player ready event; |
880 | 880 | $(this).trigger('playerReady'); |
881 | 881 | |
— | — | @@ -953,7 +953,7 @@ |
954 | 954 | |
955 | 955 | // TODO we should have a smart done Loading system that registers player states |
956 | 956 | // http://www.whatwg.org/specs/web-apps/current-work/#media-element |
957 | | - this.doneLoading = true; |
| 957 | + this.playerReady = true; |
958 | 958 | $(this).trigger('playerReady'); |
959 | 959 | }, |
960 | 960 | |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.processEmbedPlayers.js |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | var areSelectedPlayersReady = function(){ |
15 | 15 | var playersLoaded = true; |
16 | 16 | $(playerSelect).each(function(inx, player){ |
17 | | - if( ! $( player ).get(0).doneLoading ){ |
| 17 | + if( ! $( player ).get(0).playerReady ){ |
18 | 18 | playersLoaded = false; |
19 | 19 | return false; |
20 | 20 | } |