|
@@ -155,6 +155,26 @@ SmallVideo.getStreamElementID = function (stream) {
|
155
|
155
|
return (isVideo ? 'remoteVideo_' : 'remoteAudio_') + stream.getId();
|
156
|
156
|
};
|
157
|
157
|
|
|
158
|
+/**
|
|
159
|
+ * Configures hoverIn/hoverOut handlers.
|
|
160
|
+ */
|
|
161
|
+SmallVideo.prototype.bindHoverHandler = function () {
|
|
162
|
+ // Add hover handler
|
|
163
|
+ var self = this;
|
|
164
|
+ $(this.container).hover(
|
|
165
|
+ function () {
|
|
166
|
+ self.showDisplayName(true);
|
|
167
|
+ },
|
|
168
|
+ function () {
|
|
169
|
+ // If the video has been "pinned" by the user we want to
|
|
170
|
+ // keep the display name on place.
|
|
171
|
+ if (!self.VideoLayout.isLargeVideoVisible() ||
|
|
172
|
+ !self.VideoLayout.isCurrentlyOnLarge(self.id))
|
|
173
|
+ self.showDisplayName(false);
|
|
174
|
+ }
|
|
175
|
+ );
|
|
176
|
+};
|
|
177
|
+
|
158
|
178
|
/**
|
159
|
179
|
* Updates the data for the indicator
|
160
|
180
|
* @param id the id of the indicator
|