Merge pull request #630 from jitsi/fix-missing-remote-video
Fix missing remote video exception
This commit is contained in:
commit
202c506a8d
|
@ -438,13 +438,17 @@ var VideoLayout = {
|
||||||
|
|
||||||
APP.conference.listMembers().forEach(function (member) {
|
APP.conference.listMembers().forEach(function (member) {
|
||||||
let id = member.getId();
|
let id = member.getId();
|
||||||
|
let remoteVideo = remoteVideos[id];
|
||||||
|
if (!remoteVideo)
|
||||||
|
return;
|
||||||
|
|
||||||
if (member.isModerator()) {
|
if (member.isModerator()) {
|
||||||
remoteVideos[id].removeRemoteVideoMenu();
|
remoteVideo.removeRemoteVideoMenu();
|
||||||
remoteVideos[id].createModeratorIndicatorElement();
|
remoteVideo.createModeratorIndicatorElement();
|
||||||
} else if (isModerator) {
|
} else if (isModerator) {
|
||||||
// We are moderator, but user is not - add menu
|
// We are moderator, but user is not - add menu
|
||||||
if ($(`#remote_popupmenu_${id}`).length <= 0) {
|
if ($(`#remote_popupmenu_${id}`).length <= 0) {
|
||||||
remoteVideos[id].addRemoteVideoMenu();
|
remoteVideo.addRemoteVideoMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue