Fixes problem when unpinning user and returning to active speaker video.
This commit is contained in:
parent
c0dc84d824
commit
cef26315c3
|
@ -173,10 +173,12 @@ var VideoLayout = (function (my) {
|
||||||
if (focusedVideoSrc === videoSrc)
|
if (focusedVideoSrc === videoSrc)
|
||||||
{
|
{
|
||||||
focusedVideoSrc = null;
|
focusedVideoSrc = null;
|
||||||
|
var activeSpeakerVideo = null;
|
||||||
// Enable the currently set active speaker.
|
// Enable the currently set active speaker.
|
||||||
if (currentActiveSpeaker) {
|
if (currentActiveSpeaker) {
|
||||||
var activeSpeakerVideo = document
|
activeSpeakerVideo
|
||||||
.getElementById('participant_' + currentActiveSpeaker);
|
= $('#participant_' + currentActiveSpeaker + '>video')
|
||||||
|
.get(0);
|
||||||
|
|
||||||
if (activeSpeakerVideo)
|
if (activeSpeakerVideo)
|
||||||
VideoLayout.updateLargeVideo(activeSpeakerVideo.src, 1);
|
VideoLayout.updateLargeVideo(activeSpeakerVideo.src, 1);
|
||||||
|
|
Loading…
Reference in New Issue