Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Reverts hover over small video to show display name.
damencho5cead57723e0
diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.jsindex f9a6212102..d806c6efbc 100644--- a/modules/UI/videolayout/LocalVideo.js+++ b/modules/UI/videolayout/LocalVideo.js@@ -11,6 +11,7 @@ function LocalVideo(VideoLayout, emitter) {this.videoSpanId = "localVideoContainer";this.container = $("#localVideoContainer").get(0);this.localVideoId = null;+ this.bindHoverHandler();if(config.enableLocalVideoFlip)this._buildContextMenu();this.isLocal = true;diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex 00e99712ca..4633d7f7f4 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -31,6 +31,7 @@ function RemoteVideo(user, VideoLayout, emitter) {this.addRemoteVideoContainer();this.connectionIndicator = new ConnectionIndicator(this, this.id);this.setDisplayName();+ this.bindHoverHandler();this.flipX = false;this.isLocal = false;/**diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 535995d67c..561b3be909 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -155,6 +155,26 @@ SmallVideo.getStreamElementID = function (stream) {return (isVideo ? 'remoteVideo_' : 'remoteAudio_') + stream.getId();};+/**+ * Configures hoverIn/hoverOut handlers.+ */+SmallVideo.prototype.bindHoverHandler = function () {+ // Add hover handler+ var self = this;+ $(this.container).hover(+ function () {+ self.showDisplayName(true);+ },+ function () {+ // If the video has been "pinned" by the user we want to+ // keep the display name on place.+ if (!self.VideoLayout.isLargeVideoVisible() ||+ !self.VideoLayout.isCurrentlyOnLarge(self.id))+ self.showDisplayName(false);+ }+ );+};+/*** Updates the data for the indicator* @param id the id of the indicator