Skip to content

Commit

Permalink
fix(HLS): Fix prefetch with LL-HLS stream (shaka-project#5274)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 9, 2023
1 parent ea97a5a commit 551422a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/media/segment_prefetch.js
Expand Up @@ -61,6 +61,9 @@ shaka.media.SegmentPrefetch = class {
const currTime = startReference.startTime;
const maxTime = Math.max(currTime, this.prefetchPosTime_);
const iterator = this.stream_.segmentIndex.getIteratorForTime(maxTime);
if (!iterator) {
return;
}
let reference = startReference;
while (this.segmentPrefetchMap_.size < this.prefetchLimit_ &&
reference != null) {
Expand Down

0 comments on commit 551422a

Please sign in to comment.