Bläddra i källkod

feat(external_api): Command to set participant volume

master
Izak Glasencnik 4 år sedan
förälder
incheckning
6673d12cec
2 ändrade filer med 5 tillägg och 0 borttagningar
  1. 4
    0
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 4
- 0
modules/API/API.js Visa fil

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

+ 1
- 0
modules/API/external/external_api.js Visa fil

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

Laddar…
Avbryt
Spara