diff --git a/.jshintignore b/.jshintignore index 6224afaa9..efacec50a 100644 --- a/.jshintignore +++ b/.jshintignore @@ -2,10 +2,3 @@ node_modules libs debian analytics.js -lib-jitsi-meet.js - -modules/xmpp/strophe.emuc.js -modules/UI/prezi/Prezi.js -modules/RTC/adapter.screenshare.js -modules/statistics/* -modules/UI/videolayout/* diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 0727e7022..9515dec65 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -620,8 +620,8 @@ UI.getRemoteVideoType = function (jid) { return VideoLayout.getRemoteVideoType(jid); }; -UI.connectionIndicatorShowMore = function(jid) { - return VideoLayout.showMore(jid); +UI.connectionIndicatorShowMore = function(id) { + VideoLayout.showMore(id); }; // FIXME check if someone user this diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.js index 479687ed0..474c54a80 100644 --- a/modules/UI/videolayout/LargeVideo.js +++ b/modules/UI/videolayout/LargeVideo.js @@ -170,6 +170,8 @@ class VideoContainer extends LargeContainer { this.stream = null; this.videoType = null; + this.isVisible = false; + this.$avatar = $('#dominantSpeaker'); this.$wrapper = $('#largeVideoWrapper'); @@ -298,6 +300,14 @@ class VideoContainer extends LargeContainer { this.$avatar.css("visibility", show ? "visible" : "hidden"); } + /** + * Show or hide watermark. + * @param {boolean} show + */ + showWatermark (show) { + $('.watermark').css('visibility', show ? 'visible' : 'hidden'); + } + // We are doing fadeOut/fadeIn animations on parent div which wraps // largeVideo, because when Temasys plugin is in use it replaces //