Skip to content

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

Adds avatar on stage specific background

yanasc6ec96aca5c8
diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.js
index 93f7407d68..c541299ac0 100644
--- a/modules/UI/videolayout/LargeVideo.js
+++ b/modules/UI/videolayout/LargeVideo.js
@@ -317,6 +317,15 @@ class VideoContainer extends LargeContainer {
* @param {boolean} show
*/
showAvatar (show) {
+ // TO FIX: Video background need to be black, so that we don't have a
+ // flickering effect when scrolling between videos and have the screen
+ // move to grey before going back to video. Avatars though can have the
+ // default background set.
+ // In order to fix this code we need to introduce video background or
+ // find a workaround for the video flickering.
+ $("#largeVideoContainer").css("background",
+ (show) ? interfaceConfig.DEFAULT_BACKGROUND : "#000");
+
this.$avatar.css("visibility", show ? "visible" : "hidden");
}