hls.js 1.5.14-0.canary.10602 → 1.5.14-0.canary.10603

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 CHANGED
@@ -523,7 +523,7 @@
523
523
  // Some browsers don't allow to use bind on console object anyway
524
524
  // fallback to default if needed
525
525
  try {
526
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10602");
526
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10603");
527
527
  } catch (e) {
528
528
  /* log fn threw an exception. All logger methods are no-ops. */
529
529
  return createLogger();
@@ -12187,7 +12187,7 @@
12187
12187
  emsgs.forEach(function (data) {
12188
12188
  var emsgInfo = parseEmsg(data);
12189
12189
  if (emsgSchemePattern.test(emsgInfo.schemeIdUri)) {
12190
- var pts = isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
12190
+ var pts = getEmsgStartTime(emsgInfo, timeOffset);
12191
12191
  var duration = emsgInfo.eventDuration === 0xffffffff ? Number.POSITIVE_INFINITY : emsgInfo.eventDuration / emsgInfo.timeScale;
12192
12192
  // Safari takes anything <= 0.001 seconds and maps it to Infinity
12193
12193
  if (duration <= 0.001) {
@@ -12203,7 +12203,7 @@
12203
12203
  duration: duration
12204
12204
  });
12205
12205
  } else if (_this.config.enableEmsgKLVMetadata && emsgInfo.schemeIdUri.startsWith('urn:misb:KLV:bin:1910.1')) {
12206
- var _pts = isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
12206
+ var _pts = getEmsgStartTime(emsgInfo, timeOffset);
12207
12207
  id3Track.samples.push({
12208
12208
  data: emsgInfo.payload,
12209
12209
  len: emsgInfo.payload.byteLength,
@@ -12229,6 +12229,9 @@
12229
12229
  };
12230
12230
  return MP4Demuxer;
12231
12231
  }();
12232
+ function getEmsgStartTime(emsgInfo, timeOffset) {
12233
+ return isFiniteNumber(emsgInfo.presentationTime) ? emsgInfo.presentationTime / emsgInfo.timeScale : timeOffset + emsgInfo.presentationTimeDelta / emsgInfo.timeScale;
12234
+ }
12232
12235
 
12233
12236
  var getAudioBSID = function getAudioBSID(data, offset) {
12234
12237
  // check the bsid to confirm ac-3 | ec-3
@@ -17324,7 +17327,7 @@
17324
17327
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
17325
17328
  }
17326
17329
 
17327
- var version = "1.5.14-0.canary.10602";
17330
+ var version = "1.5.14-0.canary.10603";
17328
17331
 
17329
17332
  // ensure the worker ends up in the bundle
17330
17333
  // If the worker should not be included this gets aliased to empty.js