Sfoglia il codice sorgente

fix(audio-detection) Enable NoAudioDetection only when local audio levels are available.

master
Jaya Allamsetty 2 anni fa
parent
commit
faeff49a26
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1
    2
      JitsiConference.js

+ 1
- 2
JitsiConference.js Vedi File

531
     }
531
     }
532
 
532
 
533
     // Generates events based on no audio input detector.
533
     // Generates events based on no audio input detector.
534
-    if (config.enableNoAudioDetection) {
534
+    if (config.enableNoAudioDetection && !config.disableAudioLevels) {
535
         this._noAudioSignalDetection = new NoAudioSignalDetection(this);
535
         this._noAudioSignalDetection = new NoAudioSignalDetection(this);
536
         this._noAudioSignalDetection.on(DetectionEvents.NO_AUDIO_INPUT, () => {
536
         this._noAudioSignalDetection.on(DetectionEvents.NO_AUDIO_INPUT, () => {
537
             this.eventEmitter.emit(JitsiConferenceEvents.NO_AUDIO_INPUT);
537
             this.eventEmitter.emit(JitsiConferenceEvents.NO_AUDIO_INPUT);
541
         });
541
         });
542
     }
542
     }
543
 
543
 
544
-
545
     if ('channelLastN' in config) {
544
     if ('channelLastN' in config) {
546
         this.setLastN(config.channelLastN);
545
         this.setLastN(config.channelLastN);
547
     }
546
     }

Loading…
Annulla
Salva