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:
6
src/controls.js
vendored
6
src/controls.js
vendored
@ -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();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user