hls.js 1.6.0-rc.1.0.canary.11080 → 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.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.1.0.canary.11080"}`);
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
- // Parse codec details
1313
- const stsdBox = findBox(trak, ['mdia', 'minf', 'stbl', 'stsd'])[0];
1314
- const stsd = parseStsd(stsdBox);
1315
- if (type) {
1316
- // Add 'audio', 'video', and 'audiovideo' track records that will map to SourceBuffers
1317
- result[trackId] = {
1318
- timescale,
1319
- type,
1320
- stsd
1321
- };
1322
- result[type] = _objectSpread2({
1323
- timescale,
1324
- id: trackId
1325
- }, stsd);
1326
- } else {
1327
- // Add 'meta' and other track records required by `offsetStartDTS`
1328
- result[trackId] = {
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
  }
@@ -10110,7 +10108,7 @@ function requireEventemitter3 () {
10110
10108
  var eventemitter3Exports = requireEventemitter3();
10111
10109
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
10112
10110
 
10113
- const version = "1.6.0-rc.1.0.canary.11080";
10111
+ const version = "1.6.0-rc.2.0.canary.11081";
10114
10112
 
10115
10113
  // ensure the worker ends up in the bundle
10116
10114
  // If the worker should not be included this gets aliased to empty.js