Procházet zdrojové kódy

Etherpad on join (#8212)

* Add option to open Etherpad on join

For sites that focus on collaborative editing during meetings, add
an option which, when set, will automatically open etherpad when a
participant joins.

* Add openSharedDocumentOnJoin to config whitelist

This also adds some config file doc comments about the option,
including a note about the choice not to honor it in the mobile app.
master
James E. Blair před 5 roky
rodič
revize
bab2b0735c
Žádný účet není propojen s e-mailovou adresou tvůrce revize
3 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 7
    0
      config.js
  2. 4
    0
      modules/UI/UI.js
  3. 1
    0
      react/features/base/config/configWhitelist.js

+ 7
- 0
config.js Zobrazit soubor

@@ -367,6 +367,13 @@ var config = {
367 367
     // When 'true', it shows an intermediate page before joining, where the user can configure their devices.
368 368
     // prejoinPageEnabled: false,
369 369
 
370
+    // If etherpad integration is enabled, setting this to true will
371
+    // automatically open the etherpad when a participant joins.  This
372
+    // does not affect the mobile app since opening an etherpad
373
+    // obscures the conference controls -- it's better to let users
374
+    // choose to open the pad on their own in that case.
375
+    // openSharedDocumentOnJoin: false,
376
+
370 377
     // If true, shows the unsafe room name warning label when a room name is
371 378
     // deemed unsafe (due to the simplicity in the name) and a password is not
372 379
     // set or the lobby is not enabled.

+ 4
- 0
modules/UI/UI.js Zobrazit soubor

@@ -221,6 +221,10 @@ UI.initEtherpad = name => {
221 221
     const url = new URL(name, config.etherpad_base);
222 222
 
223 223
     APP.store.dispatch(setDocumentUrl(url.toString()));
224
+
225
+    if (config.openSharedDocumentOnJoin) {
226
+        etherpadManager.toggleEtherpad();
227
+    }
224 228
 };
225 229
 
226 230
 /**

+ 1
- 0
react/features/base/config/configWhitelist.js Zobrazit soubor

@@ -129,6 +129,7 @@ export default [
129 129
     'localRecording',
130 130
     'maxFullResolutionParticipants',
131 131
     'openBridgeChannel',
132
+    'openSharedDocumentOnJoin',
132 133
     'opusMaxAverageBitrate',
133 134
     'p2p',
134 135
     'pcStatsInterval',

Načítá se…
Zrušit
Uložit