We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e1c42c commit 00f4763Copy full SHA for 00f4763
lib/media/segment_prefetch.js
@@ -111,6 +111,9 @@ shaka.media.SegmentPrefetch = class {
111
shaka.media.SegmentReference.Status.MISSING) {
112
prefetchAllowed = false;
113
}
114
+ if (reference.getSegmentData()) {
115
+ prefetchAllowed = false;
116
+ }
117
if (prefetchAllowed && reference.initSegmentReference) {
118
this.prefetchInitSegment(reference.initSegmentReference);
119
@@ -143,6 +146,10 @@ shaka.media.SegmentPrefetch = class {
143
146
return;
144
147
145
148
149
+ if (initSegmentReference.getSegmentData()) {
150
+ return;
151
152
+
153
// init segments are ignored from the prefetch limit
154
const initSegments = Array.from(this.initSegmentPrefetchMap_.keys());
155
const someReference = initSegments.some((reference) => {
0 commit comments