Skip to content

Commit

Permalink
Check for a valid segment request until the end of the period (#4093)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Nov 30, 2022
1 parent 0236656 commit 4ddd645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dash/DashHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ function DashHandler(config) {
return NaN;
}

// Only look 30 seconds ahead
const end = Math.min(representation.adaptation.period.start + representation.adaptation.period.duration, time + 30);
// Look until the end of the period
const end = Math.min(representation.adaptation.period.start + representation.adaptation.period.duration);
let currentUpperTime = Math.min(time + targetThreshold, end);
let adjustedTime = NaN;
let targetRequest = null;
Expand Down

0 comments on commit 4ddd645

Please sign in to comment.