Skip to content

Commit

Permalink
Fix a bug that caused the last segment of the last period not to be r…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored Dec 6, 2024
1 parent 31de4f6 commit 3aa73ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dash/utils/SegmentsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ function getSegment(representation, duration, presentationStartTime, mediaStartT
function isSegmentAvailable(timelineConverter, representation, segment, isDynamic) {
const voPeriod = representation.adaptation.period;

// Avoid requesting segments that overlap the period boundary
// Avoid requesting segments that overlap the period boundary for periods that are not the last
if (isFinite(voPeriod.duration) && voPeriod.start + voPeriod.duration <= segment.presentationStartTime) {
return false;
return !isDynamic && voPeriod.nextPeriodId === null;
}

if (isDynamic) {
Expand Down

0 comments on commit 3aa73ac

Please sign in to comment.