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 +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 +2 -2
- package/src/demux/video/hevc-video-parser.ts +34 -25
package/dist/hls.mjs
CHANGED
@@ -401,7 +401,7 @@ function enableLogs(debugConfig, context, id) {
|
|
401
401
|
// Some browsers don't allow to use bind on console object anyway
|
402
402
|
// fallback to default if needed
|
403
403
|
try {
|
404
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.
|
404
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10871"}`);
|
405
405
|
} catch (e) {
|
406
406
|
/* log fn threw an exception. All logger methods are no-ops. */
|
407
407
|
return createLogger();
|
@@ -9847,7 +9847,7 @@ var eventemitter3 = {exports: {}};
|
|
9847
9847
|
var eventemitter3Exports = eventemitter3.exports;
|
9848
9848
|
var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
|
9849
9849
|
|
9850
|
-
const version = "1.6.0-beta.2.0.canary.
|
9850
|
+
const version = "1.6.0-beta.2.0.canary.10871";
|
9851
9851
|
|
9852
9852
|
// ensure the worker ends up in the bundle
|
9853
9853
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -12226,8 +12226,10 @@ class HevcVideoParser extends BaseVideoParser {
|
|
12226
12226
|
case 32:
|
12227
12227
|
push = true;
|
12228
12228
|
if (!track.vps) {
|
12229
|
-
|
12230
|
-
|
12229
|
+
if (typeof track.params !== 'object') {
|
12230
|
+
track.params = {};
|
12231
|
+
}
|
12232
|
+
track.params = _extends(track.params, this.readVPS(unit.data));
|
12231
12233
|
this.initVPS = unit.data;
|
12232
12234
|
}
|
12233
12235
|
track.vps = [unit.data];
|
@@ -12237,26 +12239,27 @@ class HevcVideoParser extends BaseVideoParser {
|
|
12237
12239
|
case 33:
|
12238
12240
|
push = true;
|
12239
12241
|
spsfound = true;
|
12240
|
-
if (
|
12241
|
-
|
12242
|
-
|
12243
|
-
|
12244
|
-
|
12245
|
-
|
12246
|
-
|
12247
|
-
|
12248
|
-
|
12249
|
-
|
12250
|
-
|
12251
|
-
|
12252
|
-
|
12253
|
-
track.params[prop] = config.params[prop];
|
12254
|
-
}
|
12242
|
+
if (track.vps !== undefined && track.vps[0] !== this.initVPS && track.sps !== undefined && !this.matchSPS(track.sps[0], unit.data)) {
|
12243
|
+
this.initVPS = track.vps[0];
|
12244
|
+
track.sps = track.pps = undefined;
|
12245
|
+
}
|
12246
|
+
if (!track.sps) {
|
12247
|
+
const config = this.readSPS(unit.data);
|
12248
|
+
track.width = config.width;
|
12249
|
+
track.height = config.height;
|
12250
|
+
track.pixelRatio = config.pixelRatio;
|
12251
|
+
track.codec = config.codecString;
|
12252
|
+
track.sps = [];
|
12253
|
+
if (typeof track.params !== 'object') {
|
12254
|
+
track.params = {};
|
12255
12255
|
}
|
12256
|
-
|
12257
|
-
track.
|
12256
|
+
for (const prop in config.params) {
|
12257
|
+
track.params[prop] = config.params[prop];
|
12258
12258
|
}
|
12259
12259
|
}
|
12260
|
+
if (!track.vps && !track.sps.length || track.vps && track.vps[0] === this.initVPS) {
|
12261
|
+
track.sps.push(unit.data);
|
12262
|
+
}
|
12260
12263
|
if (!VideoSample) {
|
12261
12264
|
VideoSample = this.VideoSample = this.createVideoSample(true, pes.pts, pes.dts);
|
12262
12265
|
}
|
@@ -12274,7 +12277,7 @@ class HevcVideoParser extends BaseVideoParser {
|
|
12274
12277
|
track.params[prop] = config[prop];
|
12275
12278
|
}
|
12276
12279
|
}
|
12277
|
-
if (track.vps
|
12280
|
+
if (!track.vps && !track.pps.length || track.vps && track.vps[0] === this.initVPS) {
|
12278
12281
|
track.pps.push(unit.data);
|
12279
12282
|
}
|
12280
12283
|
}
|