Fixes disappearing video during active speaker change.
This commit is contained in:
parent
e1f861e699
commit
8d68239931
|
@ -532,10 +532,14 @@ var VideoLayout = (function (my) {
|
|||
// If there's an active speaker (automatically) selected we have to
|
||||
// disable this state and update the current active speaker.
|
||||
if (isEnable) {
|
||||
if (currentActiveSpeaker)
|
||||
VideoLayout.enableActiveSpeaker(currentActiveSpeaker, false);
|
||||
else
|
||||
currentActiveSpeaker = resourceJid;
|
||||
if (currentActiveSpeaker) {
|
||||
var oldSpeaker = currentActiveSpeaker;
|
||||
setTimeout(function () {
|
||||
VideoLayout.enableActiveSpeaker(oldSpeaker, false);
|
||||
}, 200);
|
||||
}
|
||||
|
||||
currentActiveSpeaker = resourceJid;
|
||||
}
|
||||
else if (resourceJid === currentActiveSpeaker)
|
||||
currentActiveSpeaker = null;
|
||||
|
|
Loading…
Reference in New Issue