Skip to content

Commit

Permalink
Merge branch 'feature/v1.0.0' into LHLS
Browse files Browse the repository at this point in the history
* feature/v1.0.0:
  Skip large buffer holes with partial fragments when seeking
  • Loading branch information
Rob Walch committed Jan 13, 2020
2 parents a8f1a7e + 0b5c08f commit 6418002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/gap-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export default class GapController {
// Waiting for seeking in a buffered range to complete
const hasEnoughBuffer = bufferInfo.len > MAX_START_GAP_JUMP;
// Next buffered range is too far ahead to jump to while still seeking
const noBufferGap = !nextStart || nextStart - currentTime > MAX_START_GAP_JUMP;
const noBufferGap = !nextStart ||
(nextStart - currentTime > MAX_START_GAP_JUMP && !this.fragmentTracker.getPartialFragment(currentTime));
if (hasEnoughBuffer || noBufferGap) {
return;
}
Expand Down

0 comments on commit 6418002

Please sign in to comment.