Skip to content

Commit

Permalink
Fix: Avoid seeking on src when start time is 0 (shaka-project#3644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván committed Sep 19, 2021
1 parent 2701527 commit 3f822d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/playhead.js
Expand Up @@ -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
Expand Down

0 comments on commit 3f822d8

Please sign in to comment.