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
|
// If there's an active speaker (automatically) selected we have to
|
||||||
// disable this state and update the current active speaker.
|
// disable this state and update the current active speaker.
|
||||||
if (isEnable) {
|
if (isEnable) {
|
||||||
if (currentActiveSpeaker)
|
if (currentActiveSpeaker) {
|
||||||
VideoLayout.enableActiveSpeaker(currentActiveSpeaker, false);
|
var oldSpeaker = currentActiveSpeaker;
|
||||||
else
|
setTimeout(function () {
|
||||||
currentActiveSpeaker = resourceJid;
|
VideoLayout.enableActiveSpeaker(oldSpeaker, false);
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
currentActiveSpeaker = resourceJid;
|
||||||
}
|
}
|
||||||
else if (resourceJid === currentActiveSpeaker)
|
else if (resourceJid === currentActiveSpeaker)
|
||||||
currentActiveSpeaker = null;
|
currentActiveSpeaker = null;
|
||||||
|
@ -565,7 +569,7 @@ var VideoLayout = (function (my) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
activeSpeakerCanvas = activeSpeakerCanvas.get(0);
|
activeSpeakerCanvas = activeSpeakerCanvas.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (videoElement && videoElement.length > 0) {
|
if (videoElement && videoElement.length > 0) {
|
||||||
var video = document.getElementById(videoElement.get(0).id);
|
var video = document.getElementById(videoElement.get(0).id);
|
||||||
|
|
Loading…
Reference in New Issue