Browse Source

auto acp scripted

master
jfinn 5 years ago
parent
commit
bd44fa92c6
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      react/features/video-layout/functions.js

+ 11
- 3
react/features/video-layout/functions.js View File

@@ -111,10 +111,18 @@ export function getTileViewGridDimensions(state: Object, maxColumns: number = ge
111 111
     // tile is not visible.
112 112
     const { iAmRecorder } = state['features/base/config'];
113 113
     // const numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
114
-    try {} catch {
115
-        
114
+    var numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
115
+    try {
116
+        numberOfParticipants = window.glob_dev_fns.getTileViewGridDimensions_set_num(state,maxColumns)
117
+        if (typeof(numberOfParticipants) == "number"){
118
+
119
+        } else {
120
+            
121
+        }
122
+    } catch {
123
+
124
+    numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
116 125
     }
117
-    const numberOfParticipants = state['features/base/participants'].length - (iAmRecorder ? 1 : 0);
118 126
     const { clientHeight, clientWidth } = state['features/base/responsive-ui'];
119 127
 
120 128
     // calculate available width and height for tile view.

Loading…
Cancel
Save