Adds avatar on stage specific background

This commit is contained in:
yanas 2016-09-12 23:11:09 -05:00
parent d250623fde
commit c6ec96aca5
1 changed files with 9 additions and 0 deletions

View File

@ -317,6 +317,15 @@ class VideoContainer extends LargeContainer {
* @param {boolean} show * @param {boolean} show
*/ */
showAvatar (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"); this.$avatar.css("visibility", show ? "visible" : "hidden");
} }