Skip to content

Commit

Permalink
fix(Prefetch): Use the same references time for evict and prefetchSeg…
Browse files Browse the repository at this point in the history
…mentsByTime (#7003)

Using different time bases can result in duplicate or unnecessary
segments being downloaded in HLS LL
  • Loading branch information
avelad authored Jul 8, 2024
1 parent fbf1ad0 commit 9fcaf4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ shaka.media.StreamingEngine = class {

if (mediaState.segmentPrefetch && mediaState.segmentIterator &&
!this.audioPrefetchMap_.has(mediaState.stream)) {
mediaState.segmentPrefetch.evict(presentationTime);
mediaState.segmentPrefetch.evict(reference.startTime);
mediaState.segmentPrefetch.prefetchSegmentsByTime(reference.startTime);
}

Expand Down

0 comments on commit 9fcaf4d

Please sign in to comment.