feat(external_api): Command to set participant volume

This commit is contained in:
Izak Glasencnik
2021-06-02 22:28:39 +02:00
committed by Дамян Минков
parent 5e152b4a42
commit 6673d12cec
2 changed files with 5 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ import {
} from '../../react/features/device-selection/functions';
import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
import { toggleE2EE } from '../../react/features/e2ee/actions';
import { setVolume } from '../../react/features/filmstrip';
import { invite } from '../../react/features/invite';
import {
selectParticipantInLargeVideo
@@ -174,6 +175,9 @@ function initCommands() {
sendAnalytics(createApiEvent('largevideo.participant.set'));
APP.store.dispatch(selectParticipantInLargeVideo(participantId));
},
'set-participant-volume': (participantId, volume) => {
APP.store.dispatch(setVolume(participantId, volume));
},
'subject': subject => {
sendAnalytics(createApiEvent('subject.changed'));
APP.store.dispatch(setSubject(subject));