hls.js 1.6.0-beta.2.0.canary.10880 → 1.6.0-beta.2.0.canary.10882

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-demo.js CHANGED
@@ -19,13 +19,13 @@
19
19
  * @returns {{url: string, description: string, live: boolean, abr: boolean, skip_ua: string[]}}
20
20
  */
21
21
  function createTestStream(url, description, live, abr, skip_ua) {
22
- if (live === void 0) {
22
+ if (live === undefined) {
23
23
  live = false;
24
24
  }
25
- if (abr === void 0) {
25
+ if (abr === undefined) {
26
26
  abr = true;
27
27
  }
28
- if (skip_ua === void 0) {
28
+ if (skip_ua === undefined) {
29
29
  skip_ua = [];
30
30
  }
31
31
  return {
@@ -1214,12 +1214,12 @@
1214
1214
  function _defineProperties(e, r) {
1215
1215
  for (var t = 0; t < r.length; t++) {
1216
1216
  var o = r[t];
1217
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
1217
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
1218
1218
  }
1219
1219
  }
1220
1220
  function _createClass(e, r, t) {
1221
1221
  return _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
1222
- writable: !1
1222
+ writable: false
1223
1223
  }), e;
1224
1224
  }
1225
1225
  function _extends() {
@@ -1234,7 +1234,7 @@
1234
1234
  function _toPrimitive(t, r) {
1235
1235
  if ("object" != typeof t || !t) return t;
1236
1236
  var e = t[Symbol.toPrimitive];
1237
- if (void 0 !== e) {
1237
+ if (undefined !== e) {
1238
1238
  var i = e.call(t, r);
1239
1239
  if ("object" != typeof i) return i;
1240
1240
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -1310,7 +1310,7 @@
1310
1310
  }
1311
1311
 
1312
1312
  function isUndefined(input) {
1313
- return input === void 0;
1313
+ return input === undefined;
1314
1314
  }
1315
1315
 
1316
1316
  function isNumber(input) {
@@ -5660,7 +5660,7 @@
5660
5660
  }
5661
5661
 
5662
5662
  function localeErasConvertYear(era, year) {
5663
- var dir = era.since <= era.until ? +1 : -1;
5663
+ var dir = era.since <= era.until ? 1 : -1;
5664
5664
  if (year === undefined) {
5665
5665
  return hooks(era.since).year();
5666
5666
  } else {
@@ -5735,7 +5735,7 @@
5735
5735
  val,
5736
5736
  eras = this.localeData().eras();
5737
5737
  for (i = 0, l = eras.length; i < l; ++i) {
5738
- dir = eras[i].since <= eras[i].until ? +1 : -1;
5738
+ dir = eras[i].since <= eras[i].until ? 1 : -1;
5739
5739
 
5740
5740
  // truncate time
5741
5741
  val = this.clone().startOf('day').valueOf();
@@ -7549,7 +7549,7 @@
7549
7549
 
7550
7550
  r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
7551
7551
  g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
7552
- b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
7552
+ b = (x * 0.0557) + (y * -0.204) + (z * 1.0570);
7553
7553
 
7554
7554
  // assume sRGB
7555
7555
  r = r > 0.0031308
@@ -23327,12 +23327,12 @@
23327
23327
  var TimelineChart = /*#__PURE__*/function () {
23328
23328
  function TimelineChart(canvas, chartJsOptions) {
23329
23329
  var _this = this;
23330
- this.chart = void 0;
23330
+ this.chart = undefined;
23331
23331
  this.rafDebounceRequestId = -1;
23332
23332
  this.imageDataBuffer = null;
23333
23333
  this.media = null;
23334
- this.tracksChangeHandler = void 0;
23335
- this.cuesChangeHandler = void 0;
23334
+ this.tracksChangeHandler = undefined;
23335
+ this.cuesChangeHandler = undefined;
23336
23336
  this.hidden = true;
23337
23337
  this.zoom100 = 60;
23338
23338
  var ctx = canvas.getContext('2d');
@@ -23362,7 +23362,7 @@
23362
23362
  var scale = _this.chartScales[X_AXIS_SECONDS];
23363
23363
  // zoom in when double clicking near elements in chart area
23364
23364
  if (element.length || pos.x > chartArea.left) {
23365
- var amount = event.getModifierState('Shift') ? -1.0 : 0.5;
23365
+ var amount = event.getModifierState('Shift') ? -1 : 0.5;
23366
23366
  _this.zoom(scale, pos, amount);
23367
23367
  } else {
23368
23368
  scale.options.ticks.min = 0;
@@ -23546,7 +23546,7 @@
23546
23546
  var height = top + datasets.reduce(function (val, dataset) {
23547
23547
  return val + dataset.barThickness;
23548
23548
  }, 0) + scale.height + 5;
23549
- var container = (_this$chart$canvas = this.chart.canvas) == null ? void 0 : _this$chart$canvas.parentElement;
23549
+ var container = (_this$chart$canvas = this.chart.canvas) == null ? undefined : _this$chart$canvas.parentElement;
23550
23550
  if (container) {
23551
23551
  container.style.height = height + "px";
23552
23552
  }
@@ -23673,7 +23673,7 @@
23673
23673
  if (!levelDataSet) {
23674
23674
  levelDataSet = arrayFind(datasets, function (dataset) {
23675
23675
  var _details$fragments$;
23676
- return ((_details$fragments$ = details.fragments[0]) == null ? void 0 : _details$fragments$.level) === dataset.level;
23676
+ return ((_details$fragments$ = details.fragments[0]) == null ? undefined : _details$fragments$.level) === dataset.level;
23677
23677
  });
23678
23678
  }
23679
23679
  if (!levelDataSet) {