Browse Source

Fixes an issue with black thumbnails

master
hristoterezov 11 years ago
parent
commit
6cf96c5d72
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      videolayout.js

+ 4
- 1
videolayout.js View File

@@ -166,7 +166,10 @@ var VideoLayout = (function (my) {
166 166
             largeVideoState.newSrc = newSrc;
167 167
             largeVideoState.isVisible = $('#largeVideo').is(':visible');
168 168
             largeVideoState.isDesktop = isVideoSrcDesktop(jid);
169
-            if(jid2Ssrc[largeVideoState.userJid]) {
169
+            if(jid2Ssrc[largeVideoState.userJid] ||
170
+                (connection && connection.emuc.myroomjid &&
171
+                    largeVideoState.userJid == Strophe.getResourceFromJid(connection.emuc.myroomjid)))
172
+            {
170 173
                 largeVideoState.oldJid = largeVideoState.userJid;
171 174
             }
172 175
             else

Loading…
Cancel
Save