From 352e784cad9bb933d7b28af7b612ed0ce893d993 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Sat, 24 Sep 2016 10:36:24 -0500 Subject: [PATCH] fix(VideoLayout): show video when the connection is back --- modules/UI/videolayout/VideoLayout.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 86aafa775..4a7cc0fbc 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -653,7 +653,13 @@ var VideoLayout = { // Show/hide warning on the thumbnail let remoteVideo = remoteVideos[id]; if (remoteVideo) { - remoteVideo.updateConnectionStatusIndicator(isActive); + // Updating only connection status indicator is not enough, because + // when we the connection is restored while the avatar was displayed + // (due to 'muted while disconnected' condition) we may want to show + // the video stream again and in order to do that the display mode + // must be updated. + //remoteVideo.updateConnectionStatusIndicator(isActive); + remoteVideo.updateView(); } },