Browse Source

feat(external_api): Command to set participant volume

master
Izak Glasencnik 4 years ago
parent
commit
6673d12cec
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 4
- 0
modules/API/API.js View File

39
 } from '../../react/features/device-selection/functions';
39
 } from '../../react/features/device-selection/functions';
40
 import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
40
 import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
41
 import { toggleE2EE } from '../../react/features/e2ee/actions';
41
 import { toggleE2EE } from '../../react/features/e2ee/actions';
42
+import { setVolume } from '../../react/features/filmstrip';
42
 import { invite } from '../../react/features/invite';
43
 import { invite } from '../../react/features/invite';
43
 import {
44
 import {
44
     selectParticipantInLargeVideo
45
     selectParticipantInLargeVideo
174
             sendAnalytics(createApiEvent('largevideo.participant.set'));
175
             sendAnalytics(createApiEvent('largevideo.participant.set'));
175
             APP.store.dispatch(selectParticipantInLargeVideo(participantId));
176
             APP.store.dispatch(selectParticipantInLargeVideo(participantId));
176
         },
177
         },
178
+        'set-participant-volume': (participantId, volume) => {
179
+            APP.store.dispatch(setVolume(participantId, volume));
180
+        },
177
         'subject': subject => {
181
         'subject': subject => {
178
             sendAnalytics(createApiEvent('subject.changed'));
182
             sendAnalytics(createApiEvent('subject.changed'));
179
             APP.store.dispatch(setSubject(subject));
183
             APP.store.dispatch(setSubject(subject));

+ 1
- 0
modules/API/external/external_api.js View File

46
     sendTones: 'send-tones',
46
     sendTones: 'send-tones',
47
     setFollowMe: 'set-follow-me',
47
     setFollowMe: 'set-follow-me',
48
     setLargeVideoParticipant: 'set-large-video-participant',
48
     setLargeVideoParticipant: 'set-large-video-participant',
49
+    setParticipantVolume: 'set-participant-volume',
49
     setTileView: 'set-tile-view',
50
     setTileView: 'set-tile-view',
50
     setVideoQuality: 'set-video-quality',
51
     setVideoQuality: 'set-video-quality',
51
     startRecording: 'start-recording',
52
     startRecording: 'start-recording',

Loading…
Cancel
Save