Skip to content

Commit

Permalink
Fix live seeking (#3837)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbert authored Jan 5, 2022
1 parent 634343d commit 89a296c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/streaming/controllers/BufferController.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,10 @@ function BufferController(config) {
if (seekTarget <= range.end) {
// Seek video element to seek target or range start if appended buffer starts after seek target (segments timeline/template tolerance)
playbackController.seek(Math.max(seekTarget, range.start), false, true);
seekTarget = NaN;
}
} else if (currentTime < range.start) {
// If appended buffer starts after seek target (segments timeline/template tolerance) then seek to range start
playbackController.seek(range.start, false, true);
seekTarget = NaN;
}
}

Expand Down

0 comments on commit 89a296c

Please sign in to comment.