Skip to content

Commit

Permalink
fix(DASH): Fix get partial current position for LL when using Segment…
Browse files Browse the repository at this point in the history
…Template@duration (#6516)
  • Loading branch information
avelad authored and joeyparrish committed May 7, 2024
1 parent bce208b commit 47c5037
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,11 @@ shaka.dash.SegmentTemplate = class {
Math.ceil(availablePeriodTimes[1] / segmentDuration) - 1,
];

// For Low Latency we can request the partial current position.
if (context.representation.availabilityTimeOffset) {
availablePeriodPositions[1]++;
}

// In absolute positions.
const availablePresentationPositions =
availablePeriodPositions.map((x) => x + startNumber);
Expand Down

0 comments on commit 47c5037

Please sign in to comment.