Update variable name to pinnedId.

This commit is contained in:
damencho 2016-03-24 13:16:42 -05:00
parent 94d98ec0ab
commit 27607e8754
1 changed files with 2 additions and 4 deletions

View File

@ -215,7 +215,6 @@ var VideoLayout = {
newId = currentDominantSpeaker; newId = currentDominantSpeaker;
else // Otherwise select last visible video else // Otherwise select last visible video
newId = this.electLastVisibleVideo(); newId = this.electLastVisibleVideo();
}
this.updateLargeVideo(newId); this.updateLargeVideo(newId);
}, },
@ -982,9 +981,8 @@ var VideoLayout = {
// (pinned remote video) use its video type, // (pinned remote video) use its video type,
// if not then use default type - large video // if not then use default type - large video
if (!show) { if (!show) {
if(focusedVideoResourceJid) if(pinnedId)
containerTypeToShow = this.getRemoteVideoType( containerTypeToShow = this.getRemoteVideoType(pinnedId);
focusedVideoResourceJid);
else else
containerTypeToShow = VIDEO_CONTAINER_TYPE; containerTypeToShow = VIDEO_CONTAINER_TYPE;
} }