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.
- package/dist/hls.js +22 -15
- package/dist/hls.js.d.ts +1 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +19 -15
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +19 -17
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +22 -17
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/abr-controller.ts +20 -10
- package/src/controller/stream-controller.ts +2 -2
@@ -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
|
}
|