Merge pull request #630 from jitsi/fix-missing-remote-video

Fix missing remote video exception
This commit is contained in:
bgrozev 2016-04-27 16:51:10 -05:00
commit 202c506a8d
1 changed files with 7 additions and 3 deletions

View File

@ -438,13 +438,17 @@ var VideoLayout = {
APP.conference.listMembers().forEach(function (member) {
let id = member.getId();
let remoteVideo = remoteVideos[id];
if (!remoteVideo)
return;
if (member.isModerator()) {
remoteVideos[id].removeRemoteVideoMenu();
remoteVideos[id].createModeratorIndicatorElement();
remoteVideo.removeRemoteVideoMenu();
remoteVideo.createModeratorIndicatorElement();
} else if (isModerator) {
// We are moderator, but user is not - add menu
if ($(`#remote_popupmenu_${id}`).length <= 0) {
remoteVideos[id].addRemoteVideoMenu();
remoteVideo.addRemoteVideoMenu();
}
}
});