feat(noise-suppression): add toggle noise-suppression API (#11968)

* add toggle noise-suppression API

* switch NS API from toggle to set
This commit is contained in:
Andrei Gavrilescu
2022-08-04 15:47:49 +03:00
committed by GitHub
parent ca259287be
commit 1abc6b1e4a
2 changed files with 6 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ import {
resizeLargeVideo
} from '../../react/features/large-video/actions.web';
import { toggleLobbyMode, answerKnockingParticipant } from '../../react/features/lobby/actions';
import { setNoiseSuppressionEnabled } from '../../react/features/noise-suppression/actions';
import {
hideNotification,
NOTIFICATION_TIMEOUT_TYPE,
@@ -380,6 +381,9 @@ function initCommands() {
sendAnalytics(createApiEvent('screen.sharing.toggled'));
toggleScreenSharing(options.enable);
},
'set-noise-suppression-enabled': (options = {}) => {
APP.store.dispatch(setNoiseSuppressionEnabled(options.enabled));
},
'toggle-subtitles': () => {
APP.store.dispatch(toggleRequestingSubtitles());
},