浏览代码

external_api: add ability to toggle lobby

j8
Gabriel 5 年前
父节点
当前提交
4bfc80ecb9
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 4
    0
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 4
- 0
modules/API/API.js 查看文件

@@ -21,6 +21,7 @@ import {
21 21
 import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
22 22
 import { setE2EEKey } from '../../react/features/e2ee';
23 23
 import { invite } from '../../react/features/invite';
24
+import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
24 25
 import { RECORDING_TYPES } from '../../react/features/recording/constants';
25 26
 import { getActiveSession } from '../../react/features/recording/functions';
26 27
 import { muteAllParticipants } from '../../react/features/remote-video-menu/actions';
@@ -89,6 +90,9 @@ function initCommands() {
89 90
 
90 91
             APP.store.dispatch(muteAllParticipants(localIds));
91 92
         },
93
+        'toggle-lobby': isLobbyEnabled => {
94
+            APP.store.dispatch(toggleLobbyMode(isLobbyEnabled));
95
+        },
92 96
         'password': password => {
93 97
             const { conference, passwordRequired }
94 98
                 = APP.store.getState()['features/base/conference'];

+ 1
- 0
modules/API/external/external_api.js 查看文件

@@ -31,6 +31,7 @@ const commands = {
31 31
     displayName: 'display-name',
32 32
     e2eeKey: 'e2ee-key',
33 33
     email: 'email',
34
+    toggleLobby: 'toggle-lobby',
34 35
     hangup: 'video-hangup',
35 36
     muteEveryone: 'mute-everyone',
36 37
     password: 'password',

正在加载...
取消
保存