Pārlūkot izejas kodu

feat(external_api) Expose command for toggling background dlg

master
hmuresan 4 gadus atpakaļ
vecāks
revīzija
cafefecea5
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 5
    0
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 5
- 0
modules/API/API.js Parādīt failu

13
     setSubject
13
     setSubject
14
 } from '../../react/features/base/conference';
14
 } from '../../react/features/base/conference';
15
 import { overwriteConfig, getWhitelistedJSON } from '../../react/features/base/config';
15
 import { overwriteConfig, getWhitelistedJSON } from '../../react/features/base/config';
16
+import { toggleDialog } from '../../react/features/base/dialog/actions';
16
 import { parseJWTFromURLParams } from '../../react/features/base/jwt';
17
 import { parseJWTFromURLParams } from '../../react/features/base/jwt';
17
 import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
18
 import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
18
 import { MEDIA_TYPE } from '../../react/features/base/media';
19
 import { MEDIA_TYPE } from '../../react/features/base/media';
50
 import { toggleTileView, setTileView } from '../../react/features/video-layout';
51
 import { toggleTileView, setTileView } from '../../react/features/video-layout';
51
 import { muteAllParticipants } from '../../react/features/video-menu/actions';
52
 import { muteAllParticipants } from '../../react/features/video-menu/actions';
52
 import { setVideoQuality } from '../../react/features/video-quality';
53
 import { setVideoQuality } from '../../react/features/video-quality';
54
+import VirtualBackgroundDialog from '../../react/features/virtual-background/components/VirtualBackgroundDialog';
53
 import { getJitsiMeetTransport } from '../transport';
55
 import { getJitsiMeetTransport } from '../transport';
54
 
56
 
55
 import { API_ID, ENDPOINT_TEXT_MESSAGE_NAME } from './constants';
57
 import { API_ID, ENDPOINT_TEXT_MESSAGE_NAME } from './constants';
421
             const whitelistedConfig = getWhitelistedJSON('config', config);
423
             const whitelistedConfig = getWhitelistedJSON('config', config);
422
 
424
 
423
             APP.store.dispatch(overwriteConfig(whitelistedConfig));
425
             APP.store.dispatch(overwriteConfig(whitelistedConfig));
426
+        },
427
+        'toggle-virtual-background': () => {
428
+            APP.store.dispatch(toggleDialog(VirtualBackgroundDialog));
424
         }
429
         }
425
     };
430
     };
426
     transport.on('event', ({ data, name }) => {
431
     transport.on('event', ({ data, name }) => {

+ 1
- 0
modules/API/external/external_api.js Parādīt failu

60
     toggleRaiseHand: 'toggle-raise-hand',
60
     toggleRaiseHand: 'toggle-raise-hand',
61
     toggleShareScreen: 'toggle-share-screen',
61
     toggleShareScreen: 'toggle-share-screen',
62
     toggleTileView: 'toggle-tile-view',
62
     toggleTileView: 'toggle-tile-view',
63
+    toggleVirtualBackgroundDialog: 'toggle-virtual-background',
63
     toggleVideo: 'toggle-video'
64
     toggleVideo: 'toggle-video'
64
 };
65
 };
65
 
66
 

Notiek ielāde…
Atcelt
Saglabāt