From c6ec96aca5c8c9bbf92e7bf3c9ba8fc3a8eeec83 Mon Sep 17 00:00:00 2001 From: yanas Date: Mon, 12 Sep 2016 23:11:09 -0500 Subject: [PATCH] Adds avatar on stage specific background --- modules/UI/videolayout/LargeVideo.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.js index 93f7407d6..c541299ac 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"); }