diff --git a/ui/seek_bar.js b/ui/seek_bar.js index 70999a1dc1..ce62dce58c 100644 --- a/ui/seek_bar.js +++ b/ui/seek_bar.js @@ -59,7 +59,13 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement { * @private {shaka.util.Timer} */ this.seekTimer_ = new shaka.util.Timer(() => { - this.video.currentTime = this.getValue(); + let newCurrentTime = this.getValue(); + if (!this.player.isLive()) { + if (newCurrentTime == this.video.duration) { + newCurrentTime -= 0.001; + } + } + this.video.currentTime = newCurrentTime; });