hls.js 1.5.6-0.canary.10005 → 1.5.6-0.canary.10008

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,14 +215,13 @@ export default class StreamController
215
215
 
216
216
  private doTickIdle() {
217
217
  const { hls, levelLastLoaded, levels, media } = this;
218
- const { config, nextLoadLevel: level } = hls;
219
218
 
220
219
  // if start level not parsed yet OR
221
220
  // if video not attached AND start fragment already requested OR start frag prefetch not enabled
222
221
  // exit loop, as we either need more info (level not parsed) or we need media to be attached to load new fragment
223
222
  if (
224
223
  levelLastLoaded === null ||
225
- (!media && (this.startFragRequested || !config.startFragPrefetch))
224
+ (!media && (this.startFragRequested || !hls.config.startFragPrefetch))
226
225
  ) {
227
226
  return;
228
227
  }
@@ -232,6 +231,7 @@ export default class StreamController
232
231
  return;
233
232
  }
234
233
 
234
+ const level = hls.nextLoadLevel;
235
235
  if (!this.buffering || !levels?.[level]) {
236
236
  return;
237
237
  }