livekit-client 2.7.2 → 2.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -11119,7 +11119,7 @@ function getOSVersion(ua) {
11119
11119
  return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
11120
11120
  }
11121
11121
 
11122
- var version$1 = "2.7.2";
11122
+ var version$1 = "2.7.3";
11123
11123
 
11124
11124
  const version = version$1;
11125
11125
  const protocolVersion = 15;
@@ -11857,11 +11857,15 @@ function extractProcessorsFromOptions(options) {
11857
11857
  let videoProcessor;
11858
11858
  if (typeof newOptions.audio === 'object' && newOptions.audio.processor) {
11859
11859
  audioProcessor = newOptions.audio.processor;
11860
- newOptions.audio.processor = undefined;
11860
+ newOptions.audio = Object.assign(Object.assign({}, newOptions.audio), {
11861
+ processor: undefined
11862
+ });
11861
11863
  }
11862
11864
  if (typeof newOptions.video === 'object' && newOptions.video.processor) {
11863
11865
  videoProcessor = newOptions.video.processor;
11864
- newOptions.video.processor = undefined;
11866
+ newOptions.video = Object.assign(Object.assign({}, newOptions.video), {
11867
+ processor: undefined
11868
+ });
11865
11869
  }
11866
11870
  return {
11867
11871
  audioProcessor,
@@ -19490,7 +19494,7 @@ class LocalParticipant extends Participant {
19490
19494
  if (this.pendingPublishing.has(source)) {
19491
19495
  const pendingTrack = yield this.waitForPendingPublicationOfSource(source);
19492
19496
  if (!pendingTrack) {
19493
- this.log.info('skipping duplicate published source', Object.assign(Object.assign({}, this.logContext), {
19497
+ this.log.info('waiting for pending publication promise timed out', Object.assign(Object.assign({}, this.logContext), {
19494
19498
  source
19495
19499
  }));
19496
19500
  }
@@ -19538,9 +19542,14 @@ class LocalParticipant extends Participant {
19538
19542
  }
19539
19543
  }
19540
19544
  } else {
19541
- if (!(track === null || track === void 0 ? void 0 : track.track)) {
19545
+ if (!(track === null || track === void 0 ? void 0 : track.track) && this.pendingPublishing.has(source)) {
19542
19546
  // if there's no track available yet first wait for pending publishing promises of that source to see if it becomes available
19543
19547
  track = yield this.waitForPendingPublicationOfSource(source);
19548
+ if (!track) {
19549
+ this.log.info('waiting for pending publication promise timed out', Object.assign(Object.assign({}, this.logContext), {
19550
+ source
19551
+ }));
19552
+ }
19544
19553
  }
19545
19554
  if (track && track.track) {
19546
19555
  // screenshare cannot be muted, unpublish instead
@@ -20660,7 +20669,6 @@ class LocalParticipant extends Participant {
20660
20669
  }
20661
20670
  yield sleep(20);
20662
20671
  }
20663
- throw new Error('waiting for pending publication promise timed out');
20664
20672
  });
20665
20673
  }
20666
20674
  }