hls.js 1.6.0-beta.2.0.canary.10869 → 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 +28 -25
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +2 -2
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.mjs +2 -2
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +25 -22
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +1 -1
- package/src/demux/video/hevc-video-parser.ts +34 -25
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.
|
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
|
-
|
12610
|
-
|
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 (
|
12621
|
-
|
12622
|
-
|
12623
|
-
|
12624
|
-
|
12625
|
-
|
12626
|
-
|
12627
|
-
|
12628
|
-
|
12629
|
-
|
12630
|
-
|
12631
|
-
|
12632
|
-
|
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
|
-
|
12637
|
-
track.
|
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
|
12653
|
-
for (var _prop in
|
12654
|
-
track.params[_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
|
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.
|
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
|