diff --git a/css/_videolayout_default.scss b/css/_videolayout_default.scss index 107c02fcb..e2dfca1d8 100644 --- a/css/_videolayout_default.scss +++ b/css/_videolayout_default.scss @@ -62,7 +62,7 @@ .videocontainer__toptoolbar { position: absolute; left: 0; - z-index: 1; + z-index: 3; width: 100%; box-sizing: border-box; // Includes the padding in the 100% width. } @@ -81,6 +81,15 @@ height: $thumbnailIndicatorSize + $toolbarPadding; } +.videocontainer__overlay { + position: relative; + width: 100%; + height: 100%; + display: none; + background: rgba(0,0,0,.6); + z-index: 2; +} + #remoteVideos .videocontainer.videoContainerFocused, #remoteVideos .videocontainer:hover { cursor: hand; diff --git a/index.html b/index.html index 23308b83b..d42645d6f 100644 --- a/index.html +++ b/index.html @@ -255,6 +255,7 @@
+ diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js index 4633d7f7f..2d8163790 100644 --- a/modules/UI/videolayout/RemoteVideo.js +++ b/modules/UI/videolayout/RemoteVideo.js @@ -576,6 +576,10 @@ RemoteVideo.createContainer = function (spanId) { toolbar.className = "videocontainer__toolbar"; container.appendChild(toolbar); + let overlay = document.createElement('div'); + overlay.className = "videocontainer__overlay"; + container.appendChild(overlay); + var remotes = document.getElementById('remoteVideos'); return remotes.appendChild(container); }; diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js index 561b3be90..6a21c83cd 100644 --- a/modules/UI/videolayout/SmallVideo.js +++ b/modules/UI/videolayout/SmallVideo.js @@ -163,9 +163,17 @@ SmallVideo.prototype.bindHoverHandler = function () { var self = this; $(this.container).hover( function () { + if (!self.VideoLayout.isCurrentlyOnLarge(self.id)) { + $('#' + self.videoSpanId + ' .videocontainer__overlay') + .removeClass("hide") + .addClass("show-inline"); + } self.showDisplayName(true); }, function () { + $('#' + self.videoSpanId + ' .videocontainer__overlay') + .removeClass("show-inline") + .addClass("hide"); // If the video has been "pinned" by the user we want to // keep the display name on place. if (!self.VideoLayout.isLargeVideoVisible() ||