Browse Source

feat (external-api) Add command for setting tile view mode

master
hmuresan 4 years ago
parent
commit
07f16a7a51
2 changed files with 5 additions and 1 deletions
  1. 4
    1
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

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

39
 import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
39
 import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
40
 import { RECORDING_TYPES } from '../../react/features/recording/constants';
40
 import { RECORDING_TYPES } from '../../react/features/recording/constants';
41
 import { getActiveSession } from '../../react/features/recording/functions';
41
 import { getActiveSession } from '../../react/features/recording/functions';
42
-import { toggleTileView } from '../../react/features/video-layout';
42
+import { toggleTileView, setTileView } from '../../react/features/video-layout';
43
 import { muteAllParticipants } from '../../react/features/video-menu/actions';
43
 import { muteAllParticipants } from '../../react/features/video-menu/actions';
44
 import { setVideoQuality } from '../../react/features/video-quality';
44
 import { setVideoQuality } from '../../react/features/video-quality';
45
 import { getJitsiMeetTransport } from '../transport';
45
 import { getJitsiMeetTransport } from '../transport';
209
 
209
 
210
             APP.store.dispatch(toggleTileView());
210
             APP.store.dispatch(toggleTileView());
211
         },
211
         },
212
+        'set-tile-view': enabled => {
213
+            APP.store.dispatch(setTileView(enabled));
214
+        },
212
         'video-hangup': (showFeedbackDialog = true) => {
215
         'video-hangup': (showFeedbackDialog = true) => {
213
             sendAnalytics(createApiEvent('video.hangup'));
216
             sendAnalytics(createApiEvent('video.hangup'));
214
             APP.conference.hangup(showFeedbackDialog);
217
             APP.conference.hangup(showFeedbackDialog);

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

44
     sendEndpointTextMessage: 'send-endpoint-text-message',
44
     sendEndpointTextMessage: 'send-endpoint-text-message',
45
     sendTones: 'send-tones',
45
     sendTones: 'send-tones',
46
     setLargeVideoParticipant: 'set-large-video-participant',
46
     setLargeVideoParticipant: 'set-large-video-participant',
47
+    setTileView: 'set-tile-view',
47
     setVideoQuality: 'set-video-quality',
48
     setVideoQuality: 'set-video-quality',
48
     startRecording: 'start-recording',
49
     startRecording: 'start-recording',
49
     stopRecording: 'stop-recording',
50
     stopRecording: 'stop-recording',

Loading…
Cancel
Save