Skip to content

Commit

Permalink
Revert a change that was wrong regarding segment availability (Dash-I…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy authored Dec 12, 2024
1 parent d6ed706 commit ad3d5f7
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 for periods that are not the last
// Avoid requesting segments for which the start time overlaps the period boundary
if (isFinite(voPeriod.duration) && voPeriod.start + voPeriod.duration <= segment.presentationStartTime) {
return !isDynamic && voPeriod.nextPeriodId === null;
return false
}

if (isDynamic) {
Expand Down

0 comments on commit ad3d5f7

Please sign in to comment.