Skip to content

Commit b6d982b

Browse files
authored
Consider gap/discontinuity limit as tolerance when determining buffer length (#3445)
1 parent 80cb263 commit b6d982b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/streaming/controllers/BufferController.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,11 @@ function BufferController(config) {
521521
let range,
522522
length;
523523

524+
// Consider gap/discontinuity limit as tolerance
525+
if (settings.get().streaming.jumpGaps) {
526+
tolerance = settings.get().streaming.smallGapLimit;
527+
}
528+
524529
range = getRangeAt(time, tolerance);
525530

526531
if (range === null) {

0 commit comments

Comments
 (0)