diff --git a/src/js/control-bar/progress-control/seek-bar.js b/src/js/control-bar/progress-control/seek-bar.js index 51cd902456..b16f5f8ff9 100644 --- a/src/js/control-bar/progress-control/seek-bar.js +++ b/src/js/control-bar/progress-control/seek-bar.js @@ -211,7 +211,7 @@ class SeekBar extends Slider { * @private */ getCurrentTime_() { - return (this.player_.scrubbing()) ? + return (this.player_.scrubbing()) || !this.options_.playerOptions.enableSmoothSeeking ? this.player_.getCache().currentTime : this.player_.currentTime(); } @@ -324,6 +324,10 @@ class SeekBar extends Slider { // Set new time (tell player to seek to new time) this.userSeek_(newTime); + + if (this.options_.playerOptions.enableSmoothSeeking) { + this.update(); + } } enable() { diff --git a/src/js/control-bar/time-controls/time-display.js b/src/js/control-bar/time-controls/time-display.js index fb9a0ffeeb..3c1fdc1c9e 100644 --- a/src/js/control-bar/time-controls/time-display.js +++ b/src/js/control-bar/time-controls/time-display.js @@ -26,7 +26,13 @@ class TimeDisplay extends Component { constructor(player, options) { super(player, options); - this.on(player, ['timeupdate', 'ended'], (e) => this.updateContent(e)); + const types = ['timeupdate', 'ended']; + + if (options.playerOptions.enableSmoothSeeking) { + types.push('seeking'); + } + + this.on(player, types, (e) => this.updateContent(e)); this.updateTextNode_(); }