Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/nativeEmbed.js |
— | — | @@ -92,8 +92,12 @@ |
93 | 93 | var vid = this.getPlayerElement(); |
94 | 94 | if ( typeof this.playerElement != 'undefined' ) { |
95 | 95 | // Setup some bindings: |
96 | | - // Bind events to local js methods: |
97 | | - vid.addEventListener( 'canplaythrogh', function() { _this.canplaythrough }, true); |
| 96 | + // Bind events to local js methods: |
| 97 | + |
| 98 | + // mdale points out this may be the best way to write these: |
| 99 | + // vid.addEventListener( 'canplaythrough', function() { $j( _this ).trigger('canplaythrough'); }, true); |
| 100 | + |
| 101 | + vid.addEventListener( 'canplaythrough', function() { _this.canplaythrough() }, true); |
98 | 102 | vid.addEventListener( 'loadedmetadata', function() { _this.onloadedmetadata() }, true); |
99 | 103 | vid.addEventListener( 'progress', function( e ) { _this.onprogress( e ); }, true); |
100 | 104 | vid.addEventListener( 'ended', function() { _this.onended() }, true); |