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.
@@ -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();
@@ -13817,7 +13817,10 @@ class BaseStreamController extends TaskLoop {
13817
13817
  recoverWorkerError(data) {
13818
13818
  if (data.event === 'demuxerWorker') {
13819
13819
  this.fragmentTracker.removeAllFragments();
13820
- this.resetTransmuxer();
13820
+ if (this.transmuxer) {
13821
+ this.transmuxer.destroy();
13822
+ this.transmuxer = null;
13823
+ }
13821
13824
  this.resetStartWhenNotLoaded(this.levelLastLoaded);
13822
13825
  this.resetLoadingState();
13823
13826
  }
@@ -13861,7 +13864,7 @@ function changeTypeSupported() {
13861
13864
  return typeof (sourceBuffer == null ? void 0 : (_sourceBuffer$prototy = sourceBuffer.prototype) == null ? void 0 : _sourceBuffer$prototy.changeType) === 'function';
13862
13865
  }
13863
13866
 
13864
- const version = "1.5.14-0.canary.10438";
13867
+ const version = "1.5.14-0.canary.10440";
13865
13868
 
13866
13869
  // ensure the worker ends up in the bundle
13867
13870
  // If the worker should not be included this gets aliased to empty.js
@@ -16083,7 +16086,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
16083
16086
  case 0xcf:
16084
16087
  // SAMPLE-AES AAC
16085
16088
  if (!isSampleAes) {
16086
- logEncryptedSamplesFoundInUnencryptedStream('ADTS AAC', this.logger);
16089
+ logEncryptedSamplesFoundInUnencryptedStream('ADTS AAC', logger);
16087
16090
  break;
16088
16091
  }
16089
16092
  /* falls through */
@@ -16105,7 +16108,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
16105
16108
  case 0xdb:
16106
16109
  // SAMPLE-AES AVC
16107
16110
  if (!isSampleAes) {
16108
- logEncryptedSamplesFoundInUnencryptedStream('H.264', this.logger);
16111
+ logEncryptedSamplesFoundInUnencryptedStream('H.264', logger);
16109
16112
  break;
16110
16113
  }
16111
16114
  /* falls through */
@@ -16133,7 +16136,7 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
16133
16136
  case 0xc1:
16134
16137
  // SAMPLE-AES AC3
16135
16138
  if (!isSampleAes) {
16136
- logEncryptedSamplesFoundInUnencryptedStream('AC-3', this.logger);
16139
+ logEncryptedSamplesFoundInUnencryptedStream('AC-3', logger);
16137
16140
  break;
16138
16141
  }
16139
16142
  /* falls through */
@@ -16169,12 +16172,12 @@ function parsePMT(data, offset, typeSupported, isSampleAes, observer, logger) {
16169
16172
  case 0xc2: // SAMPLE-AES EC3
16170
16173
  /* falls through */
16171
16174
  case 0x87:
16172
- emitParsingError(observer, new Error('Unsupported EC-3 in M2TS found'), undefined, this.logger);
16175
+ emitParsingError(observer, new Error('Unsupported EC-3 in M2TS found'), undefined, logger);
16173
16176
  return result;
16174
16177
  case 0x24:
16175
16178
  // ITU-T Rec. H.265 and ISO/IEC 23008-2 (HEVC)
16176
16179
  {
16177
- emitParsingError(observer, new Error('Unsupported HEVC in M2TS found'), undefined, this.logger);
16180
+ emitParsingError(observer, new Error('Unsupported HEVC in M2TS found'), undefined, logger);
16178
16181
  return result;
16179
16182
  }
16180
16183
  }
@@ -18177,7 +18180,6 @@ class Transmuxer {
18177
18180
  this.observer = void 0;
18178
18181
  this.typeSupported = void 0;
18179
18182
  this.config = void 0;
18180
- this.vendor = void 0;
18181
18183
  this.id = void 0;
18182
18184
  this.demuxer = void 0;
18183
18185
  this.remuxer = void 0;
@@ -18189,7 +18191,6 @@ class Transmuxer {
18189
18191
  this.observer = observer;
18190
18192
  this.typeSupported = typeSupported;
18191
18193
  this.config = config;
18192
- this.vendor = vendor;
18193
18194
  this.id = id;
18194
18195
  this.logger = logger;
18195
18196
  }
@@ -18448,8 +18449,7 @@ class Transmuxer {
18448
18449
  const {
18449
18450
  config,
18450
18451
  observer,
18451
- typeSupported,
18452
- vendor
18452
+ typeSupported
18453
18453
  } = this;
18454
18454
  // probe for content type
18455
18455
  let mux;