hls.js 1.6.0-beta.3.0.canary.10974 → 1.6.0-beta.3.0.canary.10978

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.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.10974"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.10978"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -9887,7 +9887,7 @@ var eventemitter3 = {exports: {}};
9887
9887
  var eventemitter3Exports = eventemitter3.exports;
9888
9888
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9889
9889
 
9890
- const version = "1.6.0-beta.3.0.canary.10974";
9890
+ const version = "1.6.0-beta.3.0.canary.10978";
9891
9891
 
9892
9892
  // ensure the worker ends up in the bundle
9893
9893
  // If the worker should not be included this gets aliased to empty.js
@@ -10391,51 +10391,6 @@ function decodeId3UrlFrame(frame) {
10391
10391
  };
10392
10392
  }
10393
10393
 
10394
- function toUint8(data, offset = 0, length = Infinity) {
10395
- return view(data, offset, length, Uint8Array);
10396
- }
10397
- function view(data, offset, length, Type) {
10398
- const buffer = unsafeGetArrayBuffer(data);
10399
- let bytesPerElement = 1;
10400
- if ('BYTES_PER_ELEMENT' in Type) {
10401
- bytesPerElement = Type.BYTES_PER_ELEMENT;
10402
- }
10403
- // Absolute end of the |data| view within |buffer|.
10404
- const dataOffset = isArrayBufferView(data) ? data.byteOffset : 0;
10405
- const dataEnd = (dataOffset + data.byteLength) / bytesPerElement;
10406
- // Absolute start of the result within |buffer|.
10407
- const rawStart = (dataOffset + offset) / bytesPerElement;
10408
- const start = Math.floor(Math.max(0, Math.min(rawStart, dataEnd)));
10409
- // Absolute end of the result within |buffer|.
10410
- const end = Math.floor(Math.min(start + Math.max(length, 0), dataEnd));
10411
- return new Type(buffer, start, end - start);
10412
- }
10413
- function unsafeGetArrayBuffer(view) {
10414
- if (view instanceof ArrayBuffer) {
10415
- return view;
10416
- } else {
10417
- return view.buffer;
10418
- }
10419
- }
10420
- function isArrayBufferView(obj) {
10421
- return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
10422
- }
10423
-
10424
- function toArrayBuffer(view) {
10425
- if (view instanceof ArrayBuffer) {
10426
- return view;
10427
- } else {
10428
- if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
10429
- // This is a TypedArray over the whole buffer.
10430
- return view.buffer;
10431
- }
10432
- // This is a 'view' on the buffer. Create a new buffer that only contains
10433
- // the data. Note that since this isn't an ArrayBuffer, the 'new' call
10434
- // will allocate a new buffer to hold the copy.
10435
- return new Uint8Array(view).buffer;
10436
- }
10437
- }
10438
-
10439
10394
  /**
10440
10395
  * Encodes binary data to base64
10441
10396
  *
@@ -10540,6 +10495,51 @@ function uuid() {
10540
10495
  }
10541
10496
  }
10542
10497
 
10498
+ function toArrayBuffer(view) {
10499
+ if (view instanceof ArrayBuffer) {
10500
+ return view;
10501
+ } else {
10502
+ if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
10503
+ // This is a TypedArray over the whole buffer.
10504
+ return view.buffer;
10505
+ }
10506
+ // This is a 'view' on the buffer. Create a new buffer that only contains
10507
+ // the data. Note that since this isn't an ArrayBuffer, the 'new' call
10508
+ // will allocate a new buffer to hold the copy.
10509
+ return new Uint8Array(view).buffer;
10510
+ }
10511
+ }
10512
+
10513
+ function toUint8(data, offset = 0, length = Infinity) {
10514
+ return view(data, offset, length, Uint8Array);
10515
+ }
10516
+ function view(data, offset, length, Type) {
10517
+ const buffer = unsafeGetArrayBuffer(data);
10518
+ let bytesPerElement = 1;
10519
+ if ('BYTES_PER_ELEMENT' in Type) {
10520
+ bytesPerElement = Type.BYTES_PER_ELEMENT;
10521
+ }
10522
+ // Absolute end of the |data| view within |buffer|.
10523
+ const dataOffset = isArrayBufferView(data) ? data.byteOffset : 0;
10524
+ const dataEnd = (dataOffset + data.byteLength) / bytesPerElement;
10525
+ // Absolute start of the result within |buffer|.
10526
+ const rawStart = (dataOffset + offset) / bytesPerElement;
10527
+ const start = Math.floor(Math.max(0, Math.min(rawStart, dataEnd)));
10528
+ // Absolute end of the result within |buffer|.
10529
+ const end = Math.floor(Math.min(start + Math.max(length, 0), dataEnd));
10530
+ return new Type(buffer, start, end - start);
10531
+ }
10532
+ function unsafeGetArrayBuffer(view) {
10533
+ if (view instanceof ArrayBuffer) {
10534
+ return view;
10535
+ } else {
10536
+ return view.buffer;
10537
+ }
10538
+ }
10539
+ function isArrayBufferView(obj) {
10540
+ return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
10541
+ }
10542
+
10543
10543
  function decodeId3ImageFrame(frame) {
10544
10544
  const metadataFrame = {
10545
10545
  key: frame.type,