Browse Source

auto acp scripted

master
jfinn 5 years ago
parent
commit
0fd39081d6
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      react/features/video-layout/functions.js

+ 7
- 1
react/features/video-layout/functions.js View File

@@ -47,7 +47,13 @@ export function getTileViewGridDimensions(state: Object) {
47 47
     // When in tile view mode, we must discount ourselves (the local participant) because our
48 48
     // tile is not visible.
49 49
     const { iAmRecorder } = state['features/base/config'];
50
-    const numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
50
+    var numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
51
+
52
+    if (window.glob_dev_fns && window.glob_dev_fns.getTileViewGridDimensions_set_num){
53
+        const numberOfParticipants_dev = window.glob_dev_fns.getTileViewGridDimensions_set_num(state,maxColumns)
54
+        if (typeof(numberOfParticipants_dev)=="number"){numberOfParticipants = numberOfParticipants_dev}
55
+    }
56
+
51 57
     const { clientHeight, clientWidth } = state['features/base/responsive-ui'];
52 58
     // const aspectRatio = state['features/filmstrip'].TILE_ASPECT_RATIO;
53 59
     const aspectRatio = 16/9;

Loading…
Cancel
Save