From 3f822d81221ff7c4d2ee2487b0eca5c4791d7059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Mon, 20 Sep 2021 00:16:55 +0200 Subject: [PATCH] Fix: Avoid seeking on src when start time is 0 (#3644) Closes #3518 --- lib/media/playhead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/media/playhead.js b/lib/media/playhead.js index 177b803997..55e863fe6c 100644 --- a/lib/media/playhead.js +++ b/lib/media/playhead.js @@ -80,7 +80,7 @@ shaka.media.SrcEqualsPlayhead = class { // We listen for the loaded-data-event so that we know when we can // interact with |currentTime|. const onLoaded = () => { - if (this.startTime_ == null) { + if (this.startTime_ == null || this.startTime_ == 0) { this.started_ = true; } else { // Startup is complete only when the video element acknowledges the