1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-13 01:30:17 +02:00

Fixed tech switching.

Fixed an issue where bigplaybutton was throwing an error when not preloading.
Fixed a bufferring issue when tech switching.
This commit is contained in:
Steve Heffernan
2012-01-02 13:02:04 -08:00
parent 38cc63c530
commit 242ff4c68b
3 changed files with 49 additions and 52 deletions

6
src/controls.js vendored
View File

@ -167,7 +167,11 @@ _V_.BigPlayButton = _V_.Button.extend({
},
onClick: function(){
this.player.currentTime(0);
// Go back to the beginning if big play button is showing at the end.
// Have to check for current time otherwise it might throw a 'not ready' error.
if(this.player.currentTime()) {
this.player.currentTime(0);
}
this.player.play();
}
});