Fixes broken last-N
This commit is contained in:
parent
4c2f0d3600
commit
2f03a0a7fe
|
@ -166,7 +166,7 @@ LocalVideo.prototype.changeVideo = function (stream, isMuted) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
self.VideoLayout.handleVideoThumbClicked(
|
self.VideoLayout.handleVideoThumbClicked(
|
||||||
false,
|
true,
|
||||||
APP.xmpp.myResource());
|
APP.xmpp.myResource());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -681,13 +681,19 @@ var VideoLayout = (function (my) {
|
||||||
lastNEndpoints.indexOf(resourceJid) < 0 &&
|
lastNEndpoints.indexOf(resourceJid) < 0 &&
|
||||||
localLastNSet.indexOf(resourceJid) < 0) {
|
localLastNSet.indexOf(resourceJid) < 0) {
|
||||||
console.log("Remove from last N", resourceJid);
|
console.log("Remove from last N", resourceJid);
|
||||||
|
if (remoteVideos[resourceJid])
|
||||||
remoteVideos[resourceJid].showPeerContainer('hide');
|
remoteVideos[resourceJid].showPeerContainer('hide');
|
||||||
|
else if (APP.xmpp.myResource() !== resourceJid)
|
||||||
|
console.error("No remote video for: " + resourceJid);
|
||||||
isReceived = false;
|
isReceived = false;
|
||||||
} else if (resourceJid &&
|
} else if (resourceJid &&
|
||||||
$('#participant_' + resourceJid).is(':visible') &&
|
$('#participant_' + resourceJid).is(':visible') &&
|
||||||
lastNEndpoints.indexOf(resourceJid) < 0 &&
|
lastNEndpoints.indexOf(resourceJid) < 0 &&
|
||||||
localLastNSet.indexOf(resourceJid) >= 0) {
|
localLastNSet.indexOf(resourceJid) >= 0) {
|
||||||
|
if (remoteVideos[resourceJid])
|
||||||
remoteVideos[resourceJid].showPeerContainer('avatar');
|
remoteVideos[resourceJid].showPeerContainer('avatar');
|
||||||
|
else if (APP.xmpp.myResource() !== resourceJid)
|
||||||
|
console.error("No remote video for: " + resourceJid);
|
||||||
isReceived = false;
|
isReceived = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue