|
@@ -14,6 +14,7 @@ import { MEDIA_TYPE, setAudioMuted } from '../../base/media';
|
14
|
14
|
import { AbstractAudioMuteButton } from '../../base/toolbox';
|
15
|
15
|
import type { AbstractButtonProps } from '../../base/toolbox';
|
16
|
16
|
import { isLocalTrackMuted } from '../../base/tracks';
|
|
17
|
+import UIEvents from '../../../../service/UI/UIEvents';
|
17
|
18
|
|
18
|
19
|
declare var APP: Object;
|
19
|
20
|
|
|
@@ -121,6 +122,11 @@ class AudioMuteButton extends AbstractAudioMuteButton<Props, *> {
|
121
|
122
|
_setAudioMuted(audioMuted: boolean) {
|
122
|
123
|
sendAnalytics(createToolbarEvent(AUDIO_MUTE, { enable: audioMuted }));
|
123
|
124
|
this.props.dispatch(setAudioMuted(audioMuted));
|
|
125
|
+
|
|
126
|
+ // FIXME: The old conference logic as well as the shared video feature
|
|
127
|
+ // still rely on this event being emitted.
|
|
128
|
+ typeof APP === 'undefined'
|
|
129
|
+ || APP.UI.emitEvent(UIEvents.AUDIO_MUTED, audioMuted, true);
|
124
|
130
|
}
|
125
|
131
|
}
|
126
|
132
|
|