Переглянути джерело

Updated in videolayout

master
Ilya Daynatovich 8 роки тому
джерело
коміт
5aff96e3b7

+ 4
- 3
modules/UI/videolayout/LargeVideoManager.js Переглянути файл

@@ -332,14 +332,15 @@ export default class LargeVideoManager {
332 332
             show = APP.conference.isConnectionInterrupted();
333 333
         }
334 334
 
335
+        let id = 'localConnectionMessage';
335 336
         if (show) {
337
+            UIUtil.showElement(id);
336 338
             // Avatar message conflicts with 'videoConnectionMessage',
337 339
             // so it must be hidden
338 340
             this.showRemoteConnectionMessage(false);
341
+        } else {
342
+            UIUtil.hideElement(id);
339 343
         }
340
-
341
-        document.querySelector('#localConnectionMessage')
342
-                .classList.toggle('hide', !show);
343 344
     }
344 345
 
345 346
     /**

+ 7
- 2
modules/UI/videolayout/VideoLayout.js Переглянути файл

@@ -1136,8 +1136,13 @@ var VideoLayout = {
1136 1136
      * video stream is currently HD.
1137 1137
      */
1138 1138
     updateResolutionLabel(isResolutionHD) {
1139
-        document.querySelector('#videoResolutionLabel')
1140
-                .classList.toggle('show', isResolutionHD);
1139
+        let id = 'videoResolutionLabel';
1140
+
1141
+        if (isResolutionHD) {
1142
+            UIUtil.showElement(id);
1143
+        } else {
1144
+            UIUtil.hideElement(id);
1145
+        }
1141 1146
     },
1142 1147
 
1143 1148
     /**

Завантаження…
Відмінити
Зберегти