hls.js 1.5.14-0.canary.10439 → 1.5.14-0.canary.10442

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
@@ -420,7 +420,7 @@ function enableLogs(debugConfig, context, id) {
420
420
  // Some browsers don't allow to use bind on console object anyway
421
421
  // fallback to default if needed
422
422
  try {
423
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10439"}`);
423
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10442"}`);
424
424
  } catch (e) {
425
425
  /* log fn threw an exception. All logger methods are no-ops. */
426
426
  return createLogger();
@@ -10971,7 +10971,10 @@ class BaseStreamController extends TaskLoop {
10971
10971
  recoverWorkerError(data) {
10972
10972
  if (data.event === 'demuxerWorker') {
10973
10973
  this.fragmentTracker.removeAllFragments();
10974
- this.resetTransmuxer();
10974
+ if (this.transmuxer) {
10975
+ this.transmuxer.destroy();
10976
+ this.transmuxer = null;
10977
+ }
10975
10978
  this.resetStartWhenNotLoaded(this.levelLastLoaded);
10976
10979
  this.resetLoadingState();
10977
10980
  }
@@ -11029,7 +11032,7 @@ function concatUint8Arrays(chunks, dataLength) {
11029
11032
  return result;
11030
11033
  }
11031
11034
 
11032
- const version = "1.5.14-0.canary.10439";
11035
+ const version = "1.5.14-0.canary.10442";
11033
11036
 
11034
11037
  // ensure the worker ends up in the bundle
11035
11038
  // If the worker should not be included this gets aliased to empty.js
@@ -22969,7 +22972,7 @@ class TimelineController {
22969
22972
  if (payload.byteLength) {
22970
22973
  const decryptData = frag.decryptdata;
22971
22974
  // fragment after decryption has a stats object
22972
- const decrypted = ('stats' in data);
22975
+ const decrypted = 'stats' in data;
22973
22976
  // If the subtitles are not encrypted, parse VTTs now. Otherwise, we need to wait.
22974
22977
  if (decryptData == null || !decryptData.encrypted || decrypted) {
22975
22978
  const trackPlaylistMedia = this.tracks[frag.level];