From 6cf96c5d729009495dc25834e2072ebc6d8c4589 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 1 Dec 2014 13:15:36 +0200 Subject: [PATCH] Fixes an issue with black thumbnails --- videolayout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/videolayout.js b/videolayout.js index 04ad3d18f..b658def44 100644 --- a/videolayout.js +++ b/videolayout.js @@ -166,7 +166,10 @@ var VideoLayout = (function (my) { largeVideoState.newSrc = newSrc; largeVideoState.isVisible = $('#largeVideo').is(':visible'); largeVideoState.isDesktop = isVideoSrcDesktop(jid); - if(jid2Ssrc[largeVideoState.userJid]) { + if(jid2Ssrc[largeVideoState.userJid] || + (connection && connection.emuc.myroomjid && + largeVideoState.userJid == Strophe.getResourceFromJid(connection.emuc.myroomjid))) + { largeVideoState.oldJid = largeVideoState.userJid; } else