|
@@ -379,7 +379,6 @@ JitsiConference.prototype._init = function(options = {}) {
|
379
|
379
|
// based detection.
|
380
|
380
|
if (config.createVADProcessor) {
|
381
|
381
|
logger.info('Using VAD detection for generating talk while muted events');
|
382
|
|
- // eslint-disable-next-line no-new
|
383
|
382
|
this._talkWhileMutedDetection = new VADTalkMutedDetection(this, config.createVADProcessor);
|
384
|
383
|
this._talkWhileMutedDetection.on(DetectionEvents.VAD_TALK_WHILE_MUTED, () =>
|
385
|
384
|
this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED));
|
|
@@ -392,10 +391,8 @@ JitsiConference.prototype._init = function(options = {}) {
|
392
|
391
|
}
|
393
|
392
|
|
394
|
393
|
// Generates events based on no audio input detector.
|
395
|
|
- // eslint-disable-next-line
|
396
|
394
|
if (config.enableNoAudioDetection) {
|
397
|
|
- // eslint-disable-next-line no-new
|
398
|
|
- new NoAudioSignalDetection(this, () =>
|
|
395
|
+ this._noAudioSignalDetection = new NoAudioSignalDetection(this, () =>
|
399
|
396
|
this.eventEmitter.emit(JitsiConferenceEvents.NO_AUDIO_INPUT));
|
400
|
397
|
}
|
401
|
398
|
|