hls.js 1.5.6-0.canary.10008 → 1.5.6-0.canary.10011

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.
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
512
512
  // Some browsers don't allow to use bind on console object anyway
513
513
  // fallback to default if needed
514
514
  try {
515
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.6-0.canary.10008"}`);
515
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.6-0.canary.10011"}`);
516
516
  } catch (e) {
517
517
  /* log fn threw an exception. All logger methods are no-ops. */
518
518
  return createLogger();
@@ -1505,11 +1505,13 @@ function parseSegmentIndex(sidx) {
1505
1505
  let earliestPresentationTime = 0;
1506
1506
  let firstOffset = 0;
1507
1507
  if (version === 0) {
1508
- earliestPresentationTime = readUint32(sidx, index += 4);
1509
- firstOffset = readUint32(sidx, index += 4);
1508
+ earliestPresentationTime = readUint32(sidx, index);
1509
+ firstOffset = readUint32(sidx, index + 4);
1510
+ index += 8;
1510
1511
  } else {
1511
- earliestPresentationTime = readUint64(sidx, index += 8);
1512
- firstOffset = readUint64(sidx, index += 8);
1512
+ earliestPresentationTime = readUint64(sidx, index);
1513
+ firstOffset = readUint64(sidx, index + 8);
1514
+ index += 16;
1513
1515
  }
1514
1516
 
1515
1517
  // skip reserved
@@ -19993,7 +19995,7 @@ class Hls {
19993
19995
  * Get the video-dev/hls.js package version.
19994
19996
  */
19995
19997
  static get version() {
19996
- return "1.5.6-0.canary.10008";
19998
+ return "1.5.6-0.canary.10011";
19997
19999
  }
19998
20000
 
19999
20001
  /**