Updated in videolayout

This commit is contained in:
Ilya Daynatovich 2016-11-04 16:11:32 +02:00
parent fb4e9b3c6d
commit 5aff96e3b7
2 changed files with 11 additions and 5 deletions

View File

@ -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);
}
/**

View File

@ -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);
}
},
/**