Skip to content

Commit 4d5e9ba

Browse files
committed
fix: Fix support of getAllThumbnails when using shaka.dash.TimelineSegmentIndex (#7508)
1 parent 791f9b1 commit 4d5e9ba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/dash/segment_template.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,19 @@ shaka.dash.TimelineSegmentIndex = class extends shaka.media.SegmentIndex {
11161116
return ref;
11171117
}
11181118

1119+
/**
1120+
* @override
1121+
*/
1122+
forEachTopLevelReference(fn) {
1123+
this.fitTimeline();
1124+
for (let i = 0; i < this.getNumReferences(); i++) {
1125+
const reference = this.get(i + this.numEvicted_);
1126+
if (reference) {
1127+
fn(reference);
1128+
}
1129+
}
1130+
}
1131+
11191132
/**
11201133
* Fill in a specific template with values to get the segment uris
11211134
*

0 commit comments

Comments
 (0)