Use member.isFocus to decide whether a given member is the conference focus user.
This commit is contained in:
parent
fd954580b7
commit
806cacb755
|
@ -339,14 +339,14 @@ var VideoLayout = (function (my) {
|
||||||
|
|
||||||
Object.keys(members).forEach(function (jid) {
|
Object.keys(members).forEach(function (jid) {
|
||||||
|
|
||||||
if (Strophe.getResourceFromJid(jid) === 'focus') {
|
var resourceJid = Strophe.getResourceFromJid(jid);
|
||||||
|
var member = members[jid];
|
||||||
|
|
||||||
|
if (member.isFocus) {
|
||||||
// Skip server side focus
|
// Skip server side focus
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var resourceJid = Strophe.getResourceFromJid(jid);
|
|
||||||
var member = members[jid];
|
|
||||||
|
|
||||||
if (member.role === 'moderator') {
|
if (member.role === 'moderator') {
|
||||||
remoteVideos[resourceJid].removeRemoteVideoMenu();
|
remoteVideos[resourceJid].removeRemoteVideoMenu();
|
||||||
remoteVideos[resourceJid].createModeratorIndicatorElement();
|
remoteVideos[resourceJid].createModeratorIndicatorElement();
|
||||||
|
@ -1008,4 +1008,4 @@ var VideoLayout = (function (my) {
|
||||||
return my;
|
return my;
|
||||||
}(VideoLayout || {}));
|
}(VideoLayout || {}));
|
||||||
|
|
||||||
module.exports = VideoLayout;
|
module.exports = VideoLayout;
|
||||||
|
|
Loading…
Reference in New Issue