Kaynağa Gözat

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

master
Jaya Allamsetty 2 yıl önce
ebeveyn
işleme
faeff49a26
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1
    2
      JitsiConference.js

+ 1
- 2
JitsiConference.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet