Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Updated in videolayout

Ilya Daynatovich5aff96e3b76d
diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.js
index e8e934a4ff..079585854c 100644
--- a/modules/UI/videolayout/LargeVideoManager.js
+++ b/modules/UI/videolayout/LargeVideoManager.js
@@ -332,14 +332,15 @@ export default class LargeVideoManager {
show = APP.conference.isConnectionInterrupted();
}
+ let id = 'localConnectionMessage';
if (show) {
+ UIUtil.showElement(id);
// Avatar message conflicts with 'videoConnectionMessage',
// so it must be hidden
this.showRemoteConnectionMessage(false);
+ } else {
+ UIUtil.hideElement(id);
}
-
- document.querySelector('#localConnectionMessage')
- .classList.toggle('hide', !show);
}
/**
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 5e3abb19ba..65f1313874 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -1136,8 +1136,13 @@ var VideoLayout = {
* video stream is currently HD.
*/
updateResolutionLabel(isResolutionHD) {
- document.querySelector('#videoResolutionLabel')
- .classList.toggle('show', isResolutionHD);
+ let id = 'videoResolutionLabel';
+
+ if (isResolutionHD) {
+ UIUtil.showElement(id);
+ } else {
+ UIUtil.hideElement(id);
+ }
},
/**