livekit-client 2.7.2 → 2.7.3
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/livekit-client.esm.mjs +14 -6
 - package/dist/livekit-client.esm.mjs.map +1 -1
 - package/dist/livekit-client.umd.js +1 -1
 - package/dist/livekit-client.umd.js.map +1 -1
 - package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
 - package/package.json +1 -1
 - package/src/room/participant/LocalParticipant.ts +11 -3
 - package/src/room/track/utils.ts +2 -2
 
| 
         @@ -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. 
     | 
| 
      
 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 
     | 
| 
      
 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 
     | 
| 
      
 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(' 
     | 
| 
      
 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 
     | 
    
         
             
            }
         
     |