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

View File

@ -46,6 +46,7 @@ const commands = {
sendTones: 'send-tones', sendTones: 'send-tones',
setFollowMe: 'set-follow-me', setFollowMe: 'set-follow-me',
setLargeVideoParticipant: 'set-large-video-participant', setLargeVideoParticipant: 'set-large-video-participant',
setParticipantVolume: 'set-participant-volume',
setTileView: 'set-tile-view', setTileView: 'set-tile-view',
setVideoQuality: 'set-video-quality', setVideoQuality: 'set-video-quality',
startRecording: 'start-recording', startRecording: 'start-recording',