Przeglądaj źródła

Fixes broken last-N

master
paweldomas 10 lat temu
rodzic
commit
2f03a0a7fe

+ 1
- 1
modules/UI/videolayout/LocalVideo.js Wyświetl plik

@@ -166,7 +166,7 @@ LocalVideo.prototype.changeVideo = function (stream, isMuted) {
166 166
             event.stopPropagation();
167 167
         }
168 168
         self.VideoLayout.handleVideoThumbClicked(
169
-            false,
169
+            true,
170 170
             APP.xmpp.myResource());
171 171
     }
172 172
 

+ 8
- 2
modules/UI/videolayout/VideoLayout.js Wyświetl plik

@@ -681,13 +681,19 @@ var VideoLayout = (function (my) {
681 681
                 lastNEndpoints.indexOf(resourceJid) < 0 &&
682 682
                 localLastNSet.indexOf(resourceJid) < 0) {
683 683
                 console.log("Remove from last N", resourceJid);
684
-                remoteVideos[resourceJid].showPeerContainer('hide');
684
+                if (remoteVideos[resourceJid])
685
+                    remoteVideos[resourceJid].showPeerContainer('hide');
686
+                else if (APP.xmpp.myResource() !== resourceJid)
687
+                    console.error("No remote video for: " + resourceJid);
685 688
                 isReceived = false;
686 689
             } else if (resourceJid &&
687 690
                 $('#participant_' + resourceJid).is(':visible') &&
688 691
                 lastNEndpoints.indexOf(resourceJid) < 0 &&
689 692
                 localLastNSet.indexOf(resourceJid) >= 0) {
690
-                remoteVideos[resourceJid].showPeerContainer('avatar');
693
+                if (remoteVideos[resourceJid])
694
+                    remoteVideos[resourceJid].showPeerContainer('avatar');
695
+                else if (APP.xmpp.myResource() !== resourceJid)
696
+                    console.error("No remote video for: " + resourceJid);
691 697
                 isReceived = false;
692 698
             }
693 699
 

Ładowanie…
Anuluj
Zapisz