Skip to content

Commit

Permalink
fix: Fix support of getAllThumbnails when using shaka.dash.TimelineSe…
Browse files Browse the repository at this point in the history
…gmentIndex (#7508)
  • Loading branch information
avelad committed Oct 28, 2024
1 parent d316690 commit 52f53cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,19 @@ shaka.dash.TimelineSegmentIndex = class extends shaka.media.SegmentIndex {
return ref;
}

/**
* @override
*/
forEachTopLevelReference(fn) {
this.fitTimeline();
for (let i = 0; i < this.getNumReferences(); i++) {
const reference = this.get(i + this.numEvicted_);
if (reference) {
fn(reference);
}
}
}

/**
* Fill in a specific template with values to get the segment uris
*
Expand Down

0 comments on commit 52f53cd

Please sign in to comment.