livekit-client 2.15.12 → 2.15.13

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.
@@ -12601,7 +12601,7 @@ function getOSVersion(ua) {
12601
12601
  return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
12602
12602
  }
12603
12603
 
12604
- var version$1 = "2.15.12";
12604
+ var version$1 = "2.15.13";
12605
12605
 
12606
12606
  const version = version$1;
12607
12607
  const protocolVersion = 16;
@@ -13231,6 +13231,10 @@ function isFireFox() {
13231
13231
  var _a;
13232
13232
  return ((_a = getBrowser()) === null || _a === void 0 ? void 0 : _a.name) === 'Firefox';
13233
13233
  }
13234
+ function isChromiumBased() {
13235
+ const browser = getBrowser();
13236
+ return !!browser && browser.name === 'Chrome' && browser.os !== 'iOS';
13237
+ }
13234
13238
  function isSafari() {
13235
13239
  var _a;
13236
13240
  return ((_a = getBrowser()) === null || _a === void 0 ? void 0 : _a.name) === 'Safari';
@@ -14314,7 +14318,10 @@ class E2EEManager extends eventsExports.EventEmitter {
14314
14318
  if (!this.worker) {
14315
14319
  return;
14316
14320
  }
14317
- if (isScriptTransformSupported()) {
14321
+ if (isScriptTransformSupported() &&
14322
+ // Chrome occasionally throws an `InvalidState` error when using script transforms directly after introducing this API in 141.
14323
+ // Disabling it for Chrome based browsers until the API has stabilized
14324
+ !isChromiumBased()) {
14318
14325
  const options = {
14319
14326
  kind: 'decode',
14320
14327
  participantIdentity,
@@ -14381,7 +14388,10 @@ class E2EEManager extends eventsExports.EventEmitter {
14381
14388
  if (!((_a = this.room) === null || _a === void 0 ? void 0 : _a.localParticipant.identity) || this.room.localParticipant.identity === '') {
14382
14389
  throw TypeError('local identity needs to be known in order to set up encrypted sender');
14383
14390
  }
14384
- if (isScriptTransformSupported()) {
14391
+ if (isScriptTransformSupported() &&
14392
+ // Chrome occasionally throws an `InvalidState` error when using script transforms directly after introducing this API in 141.
14393
+ // Disabling it for Chrome based browsers until the API has stabilized
14394
+ !isChromiumBased()) {
14385
14395
  livekitLogger.info('initialize script transform');
14386
14396
  const options = {
14387
14397
  kind: 'encode',