hls.js 1.6.0-rc.2 → 1.6.0-rc.2.0.canary.11081
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 +22 -24
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +22 -24
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +22 -24
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +22 -24
- 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/utils/mp4-tools.ts +13 -15
package/dist/hls.light.mjs
CHANGED
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
|
|
402
402
|
// Some browsers don't allow to use bind on console object anyway
|
403
403
|
// fallback to default if needed
|
404
404
|
try {
|
405
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-rc.2"}`);
|
405
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-rc.2.0.canary.11081"}`);
|
406
406
|
} catch (e) {
|
407
407
|
/* log fn threw an exception. All logger methods are no-ops. */
|
408
408
|
return createLogger();
|
@@ -1308,29 +1308,27 @@ function parseInitSegment(initSegment) {
|
|
1308
1308
|
soun: ElementaryStreamTypes.AUDIO,
|
1309
1309
|
vide: ElementaryStreamTypes.VIDEO
|
1310
1310
|
}[hdlrType];
|
1311
|
+
// Parse codec details
|
1312
|
+
const stsdBox = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];
|
1313
|
+
const stsd = parseStsd(stsdBox);
|
1311
1314
|
if (type) {
|
1312
|
-
//
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
timescale,
|
1330
|
-
type: hdlrType,
|
1331
|
-
stsd
|
1332
|
-
};
|
1333
|
-
}
|
1315
|
+
// Add 'audio', 'video', and 'audiovideo' track records that will map to SourceBuffers
|
1316
|
+
result[trackId] = {
|
1317
|
+
timescale,
|
1318
|
+
type,
|
1319
|
+
stsd
|
1320
|
+
};
|
1321
|
+
result[type] = _objectSpread2({
|
1322
|
+
timescale,
|
1323
|
+
id: trackId
|
1324
|
+
}, stsd);
|
1325
|
+
} else {
|
1326
|
+
// Add 'meta' and other track records required by `offsetStartDTS`
|
1327
|
+
result[trackId] = {
|
1328
|
+
timescale,
|
1329
|
+
type: hdlrType,
|
1330
|
+
stsd
|
1331
|
+
};
|
1334
1332
|
}
|
1335
1333
|
}
|
1336
1334
|
}
|
@@ -19668,7 +19666,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19668
19666
|
});
|
19669
19667
|
}
|
19670
19668
|
|
19671
|
-
const version = "1.6.0-rc.2";
|
19669
|
+
const version = "1.6.0-rc.2.0.canary.11081";
|
19672
19670
|
|
19673
19671
|
// ensure the worker ends up in the bundle
|
19674
19672
|
// If the worker should not be included this gets aliased to empty.js
|