Skip to content

Commit

Permalink
Fix handling of MPDs containing SegmentList with SegmentTimeline (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tea committed May 30, 2023
1 parent 26962b4 commit c238e6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dash/utils/TimelineConverter.js
Expand Up @@ -313,8 +313,9 @@ function TimelineConverter() {
function _calcRangeForTimeline(voRepresentation) {
const adaptation = voRepresentation.adaptation.period.mpd.manifest.Period_asArray[voRepresentation.adaptation.period.index].AdaptationSet_asArray[voRepresentation.adaptation.index];
const representation = dashManifestModel.getRepresentationFor(voRepresentation.index, adaptation);
const timeline = representation.SegmentTemplate.SegmentTimeline;
const timescale = representation.SegmentTemplate.timescale;
const base = representation.SegmentTemplate || representation.SegmentList;
const timeline = base.SegmentTimeline;
const timescale = base.timescale;
const segments = timeline.S_asArray;
const range = { start: 0, end: 0 };
const segmentTime = segments[0].t;
Expand Down

0 comments on commit c238e6f

Please sign in to comment.