|
@@ -116,15 +116,17 @@ JitsiConference.prototype._init = function (options) {
|
116
|
116
|
// listeners are removed from statistics module.
|
117
|
117
|
this.eventManager.setupStatisticsListeners();
|
118
|
118
|
|
119
|
|
- this.talkMutedDetection = new TalkMutedDetection(function () {
|
120
|
|
- this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED);
|
121
|
|
- }.bind(this));
|
122
|
|
- this.statistics.addAudioLevelListener(
|
123
|
|
- this.talkMutedDetection.audioLevelListener
|
124
|
|
- .bind(this.talkMutedDetection));
|
125
|
|
- this.eventEmitter.on(
|
126
|
|
- JitsiConferenceEvents.TRACK_MUTE_CHANGED,
|
127
|
|
- this.talkMutedDetection.muteChanged.bind(this.talkMutedDetection));
|
|
119
|
+ if (this.options.config.enableTalkWhileMuted) {
|
|
120
|
+ this.talkMutedDetection = new TalkMutedDetection(function () {
|
|
121
|
+ this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED);
|
|
122
|
+ }.bind(this));
|
|
123
|
+ this.statistics.addAudioLevelListener(
|
|
124
|
+ this.talkMutedDetection.audioLevelListener
|
|
125
|
+ .bind(this.talkMutedDetection));
|
|
126
|
+ this.eventEmitter.on(
|
|
127
|
+ JitsiConferenceEvents.TRACK_MUTE_CHANGED,
|
|
128
|
+ this.talkMutedDetection.muteChanged.bind(this.talkMutedDetection));
|
|
129
|
+ }
|
128
|
130
|
}
|
129
|
131
|
|
130
|
132
|
/**
|