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.
@@ -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
  }
@@ -19668,7 +19666,7 @@ function assignTrackIdsByGroup(tracks) {
19668
19666
  });
19669
19667
  }
19670
19668
 
19671
- const version = "1.6.0-rc.1.0.canary.11080";
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