Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js |
— | — | @@ -528,7 +528,7 @@ |
529 | 529 | // Be sure to remove any player loader spinners |
530 | 530 | $j('.playerLoadingSpinner').remove(); |
531 | 531 | |
532 | | - mw.log( "EmbedPlayer::All on-page players ready run playerMannager callbacks" ); |
| 532 | + mw.log( "EmbedPlayer::All on-page players ready run playerManager callbacks" ); |
533 | 533 | // Run queued functions |
534 | 534 | if( _this.callbackFunctions ) { |
535 | 535 | while ( _this.callbackFunctions.length ) { |
— | — | @@ -2259,7 +2259,7 @@ |
2260 | 2260 | .css( { |
2261 | 2261 | 'display' : 'none', |
2262 | 2262 | 'position' : 'absolute', |
2263 | | - 'zindex' : 2, |
| 2263 | + 'z-index' : 2, |
2264 | 2264 | 'top' : '0px', |
2265 | 2265 | 'left' : '0px' |
2266 | 2266 | }) |
— | — | @@ -2269,7 +2269,7 @@ |
2270 | 2270 | // once faded in remove org and rename new: |
2271 | 2271 | $j( '#img_thumb_' + _this.id ).remove(); |
2272 | 2272 | $j( '#new_img_thumb_' + _this.id ).attr( 'id', 'img_thumb_' + _this.id ); |
2273 | | - $j( '#img_thumb_' + _this.id ).css( 'zindex', '1' ); |
| 2273 | + $j( '#img_thumb_' + _this.id ).css( 'z-index', '1' ); |
2274 | 2274 | _this.thumbnail_updating = false; |
2275 | 2275 | // mw.log("done fadding in "+ |
2276 | 2276 | // $j('#img_thumb_'+_this.id).attr("src")); |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayerNative.js |
— | — | @@ -314,7 +314,13 @@ |
315 | 315 | }; |
316 | 316 | // Assume we will get to add the Listener before the seek is done |
317 | 317 | _this.playerElement.addEventListener( 'seeked', once, false ); |
318 | | - _this.playerElement.currentTime = time; |
| 318 | + try { |
| 319 | + _this.playerElement.currentTime = time; |
| 320 | + } catch (e) { |
| 321 | + mw.log("Could not seek to this point. Unbuffered point."); |
| 322 | + callback(); |
| 323 | + return; |
| 324 | + } |
319 | 325 | } else { |
320 | 326 | if( callbackCount >= 300 ){ |
321 | 327 | mw.log("Error with seek request, media never in ready state"); |