hls.js 1.6.0-beta.2.0.canary.10867 → 1.6.0-beta.2.0.canary.10871

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
@@ -1058,7 +1058,7 @@
1058
1058
  // Some browsers don't allow to use bind on console object anyway
1059
1059
  // fallback to default if needed
1060
1060
  try {
1061
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10867");
1061
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10871");
1062
1062
  } catch (e) {
1063
1063
  /* log fn threw an exception. All logger methods are no-ops. */
1064
1064
  return createLogger();
@@ -12606,8 +12606,10 @@
12606
12606
  case 32:
12607
12607
  push = true;
12608
12608
  if (!track.vps) {
12609
- var config = _this2.readVPS(unit.data);
12610
- track.params = _objectSpread2({}, config);
12609
+ if (typeof track.params !== 'object') {
12610
+ track.params = {};
12611
+ }
12612
+ track.params = _extends(track.params, _this2.readVPS(unit.data));
12611
12613
  _this2.initVPS = unit.data;
12612
12614
  }
12613
12615
  track.vps = [unit.data];
@@ -12617,26 +12619,27 @@
12617
12619
  case 33:
12618
12620
  push = true;
12619
12621
  spsfound = true;
12620
- if (typeof track.params === 'object') {
12621
- if (track.vps !== undefined && track.vps[0] !== _this2.initVPS && track.sps !== undefined && !_this2.matchSPS(track.sps[0], unit.data)) {
12622
- _this2.initVPS = track.vps[0];
12623
- track.sps = track.pps = undefined;
12624
- }
12625
- if (!track.sps) {
12626
- var _config = _this2.readSPS(unit.data);
12627
- track.width = _config.width;
12628
- track.height = _config.height;
12629
- track.pixelRatio = _config.pixelRatio;
12630
- track.codec = _config.codecString;
12631
- track.sps = [];
12632
- for (var prop in _config.params) {
12633
- track.params[prop] = _config.params[prop];
12634
- }
12622
+ if (track.vps !== undefined && track.vps[0] !== _this2.initVPS && track.sps !== undefined && !_this2.matchSPS(track.sps[0], unit.data)) {
12623
+ _this2.initVPS = track.vps[0];
12624
+ track.sps = track.pps = undefined;
12625
+ }
12626
+ if (!track.sps) {
12627
+ var config = _this2.readSPS(unit.data);
12628
+ track.width = config.width;
12629
+ track.height = config.height;
12630
+ track.pixelRatio = config.pixelRatio;
12631
+ track.codec = config.codecString;
12632
+ track.sps = [];
12633
+ if (typeof track.params !== 'object') {
12634
+ track.params = {};
12635
12635
  }
12636
- if (track.vps !== undefined && track.vps[0] === _this2.initVPS) {
12637
- track.sps.push(unit.data);
12636
+ for (var prop in config.params) {
12637
+ track.params[prop] = config.params[prop];
12638
12638
  }
12639
12639
  }
12640
+ if (!track.vps && !track.sps.length || track.vps && track.vps[0] === _this2.initVPS) {
12641
+ track.sps.push(unit.data);
12642
+ }
12640
12643
  if (!VideoSample) {
12641
12644
  VideoSample = _this2.VideoSample = _this2.createVideoSample(true, pes.pts, pes.dts);
12642
12645
  }
@@ -12649,12 +12652,12 @@
12649
12652
  if (typeof track.params === 'object') {
12650
12653
  if (!track.pps) {
12651
12654
  track.pps = [];
12652
- var _config2 = _this2.readPPS(unit.data);
12653
- for (var _prop in _config2) {
12654
- track.params[_prop] = _config2[_prop];
12655
+ var _config = _this2.readPPS(unit.data);
12656
+ for (var _prop in _config) {
12657
+ track.params[_prop] = _config[_prop];
12655
12658
  }
12656
12659
  }
12657
- if (track.vps !== undefined && track.vps[0] === _this2.initVPS) {
12660
+ if (!track.vps && !track.pps.length || track.vps && track.vps[0] === _this2.initVPS) {
12658
12661
  track.pps.push(unit.data);
12659
12662
  }
12660
12663
  }
@@ -16308,7 +16311,7 @@
16308
16311
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16309
16312
  }
16310
16313
 
16311
- var version = "1.6.0-beta.2.0.canary.10867";
16314
+ var version = "1.6.0-beta.2.0.canary.10871";
16312
16315
 
16313
16316
  // ensure the worker ends up in the bundle
16314
16317
  // If the worker should not be included this gets aliased to empty.js