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

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 CHANGED
@@ -45,11 +45,11 @@
45
45
  if ("object" != typeof t || !t) return t;
46
46
  var e = t[Symbol.toPrimitive];
47
47
  if (void 0 !== e) {
48
- var i = e.call(t, r || "default");
48
+ var i = e.call(t, r );
49
49
  if ("object" != typeof i) return i;
50
50
  throw new TypeError("@@toPrimitive must return a primitive value.");
51
51
  }
52
- return ("string" === r ? String : Number)(t);
52
+ return (String )(t);
53
53
  }
54
54
  function _toPropertyKey(t) {
55
55
  var i = _toPrimitive(t, "string");
@@ -160,14 +160,14 @@
160
160
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
161
161
  }
162
162
  function _arrayLikeToArray(arr, len) {
163
- if (len == null || len > arr.length) len = arr.length;
163
+ len = arr.length;
164
164
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
165
165
  return arr2;
166
166
  }
167
167
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
168
168
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
169
169
  if (it) return (it = it.call(o)).next.bind(it);
170
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
170
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
171
171
  if (it) o = it;
172
172
  var i = 0;
173
173
  return function () {
@@ -617,10 +617,10 @@
617
617
 
618
618
  function consolePrintFn(type, id) {
619
619
  var func = self.console[type];
620
- return func ? func.bind(self.console, (id ? '[' + id + '] ' : '') + "[" + type + "] >") : noop;
620
+ return func ? func.bind(self.console, ('') + "[" + type + "] >") : noop;
621
621
  }
622
622
  function getLoggerFn(key, debugConfig, id) {
623
- return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key, id);
623
+ return debugConfig[key] ? debugConfig[key].bind(debugConfig) : consolePrintFn(key);
624
624
  }
625
625
  var exportedLogger = createLogger();
626
626
  function enableLogs(debugConfig, context, id) {
@@ -632,12 +632,12 @@
632
632
  // 'trace',
633
633
  'debug', 'log', 'info', 'warn', 'error'];
634
634
  keys.forEach(function (key) {
635
- newLogger[key] = getLoggerFn(key, debugConfig, id);
635
+ newLogger[key] = getLoggerFn(key, debugConfig);
636
636
  });
637
637
  // Some browsers don't allow to use bind on console object anyway
638
638
  // fallback to default if needed
639
639
  try {
640
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10202");
640
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10206");
641
641
  } catch (e) {
642
642
  /* log fn threw an exception. All logger methods are no-ops. */
643
643
  return createLogger();
@@ -2591,17 +2591,7 @@
2591
2591
  }
2592
2592
  var version;
2593
2593
  var kids;
2594
- if (keyids) {
2595
- version = 1;
2596
- kids = new Uint8Array(keyids.length * 16);
2597
- for (var ix = 0; ix < keyids.length; ix++) {
2598
- var k = keyids[ix]; // uint8array
2599
- if (k.byteLength !== 16) {
2600
- throw new RangeError('Invalid key');
2601
- }
2602
- kids.set(k, ix * 16);
2603
- }
2604
- } else {
2594
+ {
2605
2595
  version = 0;
2606
2596
  kids = new Uint8Array();
2607
2597
  }
@@ -15120,15 +15110,12 @@
15120
15110
  if (srcScale === void 0) {
15121
15111
  srcScale = 1;
15122
15112
  }
15123
- if (round === void 0) {
15113
+ {
15124
15114
  round = false;
15125
15115
  }
15126
15116
  return toTimescaleFromBase(baseTime, destScale, 1 / srcScale, round);
15127
15117
  }
15128
15118
  function toMsFromMpegTsClock(baseTime, round) {
15129
- if (round === void 0) {
15130
- round = false;
15131
- }
15132
15119
  return toTimescaleFromBase(baseTime, 1000, 1 / MPEG_TS_CLOCK_FREQ_HZ, round);
15133
15120
  }
15134
15121
  function toMpegTsClockFromTimescale(baseTime, srcScale) {
@@ -22493,7 +22480,7 @@
22493
22480
 
22494
22481
  // String.prototype.startsWith is not supported in IE11
22495
22482
  var startsWith = function startsWith(inputString, searchString, position) {
22496
- if (position === void 0) {
22483
+ {
22497
22484
  position = 0;
22498
22485
  }
22499
22486
  return inputString.slice(position, position + searchString.length) === searchString;
@@ -30511,7 +30498,7 @@
30511
30498
  * Get the video-dev/hls.js package version.
30512
30499
  */
30513
30500
  function get() {
30514
- return "1.5.9-0.canary.10202";
30501
+ return "1.5.9-0.canary.10206";
30515
30502
  }
30516
30503
  }, {
30517
30504
  key: "Events",