Skip to content

Commit

Permalink
This fixes an issue with the calculation of the segment replacementTi…
Browse files Browse the repository at this point in the history
…me for SegmentTemplate. (Dash-Industry-Forum#4537)
  • Loading branch information
dsilhavy authored Aug 2, 2024
1 parent 5f7b4db commit cb61706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dash/utils/TemplateSegmentsGetter.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function TemplateSegmentsGetter(config, isDynamic) {

const seg = getIndexBasedSegment(timelineConverter, isDynamic, representation, index);
if (seg) {
seg.replacementTime = Math.round((index - 1) * representation.segmentDuration * representation.timescale, 10);
seg.replacementTime = Math.round(index * representation.segmentDuration * representation.timescale, 10);

let url = template.media;
url = replaceTokenForTemplate(url, 'Number', seg.replacementNumber);
Expand Down

0 comments on commit cb61706

Please sign in to comment.