Skip to content

Commit

Permalink
fix: Dont use inaccurateManifestTolerance for sequenceMode (#7207)
Browse files Browse the repository at this point in the history
Related to #7206
  • Loading branch information
avelad committed Aug 26, 2024
1 parent 2c804a9 commit 6f516a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,8 @@ shaka.media.StreamingEngine = class {
// If there's positive drift then we need to adjust the lookup time, and
// may wind up requesting the previous segment to be safe.
// inaccurateManifestTolerance should be 0 for low latency streaming.
const inaccurateTolerance = this.config_.inaccurateManifestTolerance;
const inaccurateTolerance = this.manifest_.sequenceMode ?
0 : this.config_.inaccurateManifestTolerance;
const lookupTime = Math.max(presentationTime - inaccurateTolerance, 0);

shaka.log.v1(logPrefix, 'looking up segment',
Expand Down

0 comments on commit 6f516a5

Please sign in to comment.