hls.js 1.5.14-0.canary.10438 → 1.5.14-0.canary.10440

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.10438"}`);
423
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10440"}`);
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.10438";
11035
+ const version = "1.5.14-0.canary.10440";
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
@@ -13992,7 +13995,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
13992
13995
  case 0xcf:
13993
13996
  // SAMPLE-AES AAC
13994
13997
  if (!isSampleAes) {
13995
- logEncryptedSamplesFoundInUnencryptedStream('ADTS AAC', this.logger);
13998
+ logEncryptedSamplesFoundInUnencryptedStream('ADTS AAC', logger);
13996
13999
  break;
13997
14000
  }
13998
14001
  /* falls through */
@@ -14014,7 +14017,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
14014
14017
  case 0xdb:
14015
14018
  // SAMPLE-AES AVC
14016
14019
  if (!isSampleAes) {
14017
- logEncryptedSamplesFoundInUnencryptedStream('H.264', this.logger);
14020
+ logEncryptedSamplesFoundInUnencryptedStream('H.264', logger);
14018
14021
  break;
14019
14022
  }
14020
14023
  /* falls through */
@@ -14042,7 +14045,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
14042
14045
  case 0xc1:
14043
14046
  // SAMPLE-AES AC3
14044
14047
  if (!isSampleAes) {
14045
- logEncryptedSamplesFoundInUnencryptedStream('AC-3', this.logger);
14048
+ logEncryptedSamplesFoundInUnencryptedStream('AC-3', logger);
14046
14049
  break;
14047
14050
  }
14048
14051
  /* falls through */
@@ -14088,7 +14091,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
14088
14091
  case 0xc2: // SAMPLE-AES EC3
14089
14092
  /* falls through */
14090
14093
  case 0x87:
14091
- emitParsingError(observer, new Error('Unsupported EC-3 in M2TS found'), undefined, this.logger);
14094
+ emitParsingError(observer, new Error('Unsupported EC-3 in M2TS found'), undefined, logger);
14092
14095
  return result;
14093
14096
  case 0x24:
14094
14097
  // ITU-T Rec. H.265 and ISO/IEC 23008-2 (HEVC)
@@ -16112,7 +16115,6 @@ class Transmuxer {
16112
16115
  this.observer = void 0;
16113
16116
  this.typeSupported = void 0;
16114
16117
  this.config = void 0;
16115
- this.vendor = void 0;
16116
16118
  this.id = void 0;
16117
16119
  this.demuxer = void 0;
16118
16120
  this.remuxer = void 0;
@@ -16124,7 +16126,6 @@ class Transmuxer {
16124
16126
  this.observer = observer;
16125
16127
  this.typeSupported = typeSupported;
16126
16128
  this.config = config;
16127
- this.vendor = vendor;
16128
16129
  this.id = id;
16129
16130
  this.logger = logger;
16130
16131
  }
@@ -16383,8 +16384,7 @@ class Transmuxer {
16383
16384
  const {
16384
16385
  config,
16385
16386
  observer,
16386
- typeSupported,
16387
- vendor
16387
+ typeSupported
16388
16388
  } = this;
16389
16389
  // probe for content type
16390
16390
  let mux;