hls.js 1.5.9-0.canary.10202 → 1.5.9-0.canary.10204

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
@@ -201,11 +201,11 @@ function _toPrimitive(t, r) {
201
201
  if ("object" != typeof t || !t) return t;
202
202
  var e = t[Symbol.toPrimitive];
203
203
  if (void 0 !== e) {
204
- var i = e.call(t, r || "default");
204
+ var i = e.call(t, r );
205
205
  if ("object" != typeof i) return i;
206
206
  throw new TypeError("@@toPrimitive must return a primitive value.");
207
207
  }
208
- return ("string" === r ? String : Number)(t);
208
+ return (String )(t);
209
209
  }
210
210
  function _toPropertyKey(t) {
211
211
  var i = _toPrimitive(t, "string");
@@ -492,10 +492,10 @@ function createLogger() {
492
492
 
493
493
  function consolePrintFn(type, id) {
494
494
  const func = self.console[type];
495
- return func ? func.bind(self.console, `${id ? '[' + id + '] ' : ''}[${type}] >`) : noop;
495
+ return func ? func.bind(self.console, `${''}[${type}] >`) : noop;
496
496
  }
497
497
  function getLoggerFn(key, debugConfig, id) {
498
- return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key, id);
498
+ return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key);
499
499
  }
500
500
  const exportedLogger = createLogger();
501
501
  function enableLogs(debugConfig, context, id) {
@@ -507,12 +507,12 @@ function enableLogs(debugConfig, context, id) {
507
507
  // 'trace',
508
508
  'debug', 'log', 'info', 'warn', 'error'];
509
509
  keys.forEach(key => {
510
- newLogger[key] = getLoggerFn(key, debugConfig, id);
510
+ newLogger[key] = getLoggerFn(key, debugConfig);
511
511
  });
512
512
  // Some browsers don't allow to use bind on console object anyway
513
513
  // fallback to default if needed
514
514
  try {
515
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.10202"}`);
515
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.10204"}`);
516
516
  } catch (e) {
517
517
  /* log fn threw an exception. All logger methods are no-ops. */
518
518
  return createLogger();
@@ -2388,17 +2388,7 @@ function mp4pssh(systemId, keyids, data) {
2388
2388
  }
2389
2389
  let version;
2390
2390
  let kids;
2391
- if (keyids) {
2392
- version = 1;
2393
- kids = new Uint8Array(keyids.length * 16);
2394
- for (let ix = 0; ix < keyids.length; ix++) {
2395
- const k = keyids[ix]; // uint8array
2396
- if (k.byteLength !== 16) {
2397
- throw new RangeError('Invalid key');
2398
- }
2399
- kids.set(k, ix * 16);
2400
- }
2401
- } else {
2391
+ {
2402
2392
  version = 0;
2403
2393
  kids = new Uint8Array();
2404
2394
  }
@@ -29010,7 +29000,7 @@ class Hls {
29010
29000
  * Get the video-dev/hls.js package version.
29011
29001
  */
29012
29002
  static get version() {
29013
- return "1.5.9-0.canary.10202";
29003
+ return "1.5.9-0.canary.10204";
29014
29004
  }
29015
29005
 
29016
29006
  /**