Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(external_api): Command to set participant volume

Izak Glasencnik6673d12cecb6
diff --git a/modules/API/API.js b/modules/API/API.js
index d953efbaec..6acfe789ed 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -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));
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index a4ace1a2fc..069fa1cbf4 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -46,6 +46,7 @@ const commands = {
sendTones: 'send-tones',
setFollowMe: 'set-follow-me',
setLargeVideoParticipant: 'set-large-video-participant',
+ setParticipantVolume: 'set-participant-volume',
setTileView: 'set-tile-view',
setVideoQuality: 'set-video-quality',
startRecording: 'start-recording',