Skip to content

Commit

Permalink
Updated in videolayout
Browse files Browse the repository at this point in the history
  • Loading branch information
idainatovych committed Nov 4, 2016
1 parent a17403c commit d7c908e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions modules/UI/videolayout/LargeVideoManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,15 @@ export default class LargeVideoManager {
show = APP.conference.isConnectionInterrupted();
}

let id = 'localConnectionMessage';
if (show) {
UIUtil.showElement(id);
// Avatar message conflicts with 'videoConnectionMessage',
// so it must be hidden
this.showRemoteConnectionMessage(false);
} else {
UIUtil.hideElement(id);
}

document.querySelector('#localConnectionMessage')
.classList.toggle('hide', !show);
}

/**
Expand Down
9 changes: 7 additions & 2 deletions modules/UI/videolayout/VideoLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,13 @@ var VideoLayout = {
* video stream is currently HD.
*/
updateResolutionLabel(isResolutionHD) {
document.querySelector('#videoResolutionLabel')
.classList.toggle('show', isResolutionHD);
let id = 'videoResolutionLabel';

if (isResolutionHD) {
UIUtil.showElement(id);
} else {
UIUtil.hideElement(id);
}
},

/**
Expand Down

0 comments on commit d7c908e

Please sign in to comment.