mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
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:
committed by
GitHub
parent
ca259287be
commit
1abc6b1e4a
@@ -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());
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user