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.
@@ -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();
@@ -12204,6 +12204,21 @@ function decodeId3UrlFrame(frame) {
12204
12204
  };
12205
12205
  }
12206
12206
 
12207
+ function toArrayBuffer(view) {
12208
+ if (view instanceof ArrayBuffer) {
12209
+ return view;
12210
+ } else {
12211
+ if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
12212
+ // This is a TypedArray over the whole buffer.
12213
+ return view.buffer;
12214
+ }
12215
+ // This is a 'view' on the buffer. Create a new buffer that only contains
12216
+ // the data. Note that since this isn't an ArrayBuffer, the 'new' call
12217
+ // will allocate a new buffer to hold the copy.
12218
+ return new Uint8Array(view).buffer;
12219
+ }
12220
+ }
12221
+
12207
12222
  function toUint8(data, offset = 0, length = Infinity) {
12208
12223
  return view(data, offset, length, Uint8Array);
12209
12224
  }
@@ -12234,21 +12249,6 @@ function isArrayBufferView(obj) {
12234
12249
  return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
12235
12250
  }
12236
12251
 
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
12252
  function decodeId3ImageFrame(frame) {
12253
12253
  const metadataFrame = {
12254
12254
  key: frame.type,
@@ -19384,7 +19384,7 @@ function assignTrackIdsByGroup(tracks) {
19384
19384
  });
19385
19385
  }
19386
19386
 
19387
- const version = "1.6.0-beta.3.0.canary.10974";
19387
+ const version = "1.6.0-beta.3.0.canary.10978";
19388
19388
 
19389
19389
  // ensure the worker ends up in the bundle
19390
19390
  // If the worker should not be included this gets aliased to empty.js