hls.js 1.6.0-beta.3.0.canary.10976 → 1.6.0-beta.3.0.canary.10979
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.d.mts +1 -0
- package/dist/hls.d.ts +1 -0
- package/dist/hls.js +63 -60
- package/dist/hls.js.d.ts +1 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +27 -24
- 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 +25 -22
- 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 +55 -52
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +2 -2
- package/src/controller/abr-controller.ts +6 -2
package/dist/hls.light.mjs
CHANGED
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
|
|
402
402
|
// Some browsers don't allow to use bind on console object anyway
|
403
403
|
// fallback to default if needed
|
404
404
|
try {
|
405
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.
|
405
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.10979"}`);
|
406
406
|
} catch (e) {
|
407
407
|
/* log fn threw an exception. All logger methods are no-ops. */
|
408
408
|
return createLogger();
|
@@ -1698,16 +1698,19 @@ class AbrController extends Logger {
|
|
1698
1698
|
return -1;
|
1699
1699
|
}
|
1700
1700
|
set nextAutoLevel(nextLevel) {
|
1701
|
-
const
|
1702
|
-
maxAutoLevel,
|
1703
|
-
minAutoLevel
|
1704
|
-
} = this.hls;
|
1705
|
-
const value = Math.min(Math.max(nextLevel, minAutoLevel), maxAutoLevel);
|
1701
|
+
const value = this.deriveNextAutoLevel(nextLevel);
|
1706
1702
|
if (this._nextAutoLevel !== value) {
|
1707
1703
|
this.nextAutoLevelKey = '';
|
1708
1704
|
this._nextAutoLevel = value;
|
1709
1705
|
}
|
1710
1706
|
}
|
1707
|
+
deriveNextAutoLevel(nextLevel) {
|
1708
|
+
const {
|
1709
|
+
maxAutoLevel,
|
1710
|
+
minAutoLevel
|
1711
|
+
} = this.hls;
|
1712
|
+
return Math.min(Math.max(nextLevel, minAutoLevel), maxAutoLevel);
|
1713
|
+
}
|
1711
1714
|
}
|
1712
1715
|
|
1713
1716
|
const BinarySearch = {
|
@@ -12204,6 +12207,21 @@ function decodeId3UrlFrame(frame) {
|
|
12204
12207
|
};
|
12205
12208
|
}
|
12206
12209
|
|
12210
|
+
function toArrayBuffer(view) {
|
12211
|
+
if (view instanceof ArrayBuffer) {
|
12212
|
+
return view;
|
12213
|
+
} else {
|
12214
|
+
if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
|
12215
|
+
// This is a TypedArray over the whole buffer.
|
12216
|
+
return view.buffer;
|
12217
|
+
}
|
12218
|
+
// This is a 'view' on the buffer. Create a new buffer that only contains
|
12219
|
+
// the data. Note that since this isn't an ArrayBuffer, the 'new' call
|
12220
|
+
// will allocate a new buffer to hold the copy.
|
12221
|
+
return new Uint8Array(view).buffer;
|
12222
|
+
}
|
12223
|
+
}
|
12224
|
+
|
12207
12225
|
function toUint8(data, offset = 0, length = Infinity) {
|
12208
12226
|
return view(data, offset, length, Uint8Array);
|
12209
12227
|
}
|
@@ -12234,21 +12252,6 @@ function isArrayBufferView(obj) {
|
|
12234
12252
|
return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
|
12235
12253
|
}
|
12236
12254
|
|
12237
|
-
function toArrayBuffer(view) {
|
12238
|
-
if (view instanceof ArrayBuffer) {
|
12239
|
-
return view;
|
12240
|
-
} else {
|
12241
|
-
if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
|
12242
|
-
// This is a TypedArray over the whole buffer.
|
12243
|
-
return view.buffer;
|
12244
|
-
}
|
12245
|
-
// This is a 'view' on the buffer. Create a new buffer that only contains
|
12246
|
-
// the data. Note that since this isn't an ArrayBuffer, the 'new' call
|
12247
|
-
// will allocate a new buffer to hold the copy.
|
12248
|
-
return new Uint8Array(view).buffer;
|
12249
|
-
}
|
12250
|
-
}
|
12251
|
-
|
12252
12255
|
function decodeId3ImageFrame(frame) {
|
12253
12256
|
const metadataFrame = {
|
12254
12257
|
key: frame.type,
|
@@ -19384,7 +19387,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19384
19387
|
});
|
19385
19388
|
}
|
19386
19389
|
|
19387
|
-
const version = "1.6.0-beta.3.0.canary.
|
19390
|
+
const version = "1.6.0-beta.3.0.canary.10979";
|
19388
19391
|
|
19389
19392
|
// ensure the worker ends up in the bundle
|
19390
19393
|
// If the worker should not be included this gets aliased to empty.js
|