|
@@ -146,7 +146,7 @@ SmallVideo.prototype.getId = function () {
|
146
|
146
|
* <tt>false</tt> - otherwise.
|
147
|
147
|
*/
|
148
|
148
|
SmallVideo.prototype.isVisible = function () {
|
149
|
|
- return $('#' + this.videoSpanId).is(':visible');
|
|
149
|
+ return this.$container.is(':visible');
|
150
|
150
|
};
|
151
|
151
|
|
152
|
152
|
/**
|
|
@@ -171,8 +171,8 @@ SmallVideo.prototype.setDeviceAvailabilityIcons = function (devices) {
|
171
|
171
|
if(!this.container)
|
172
|
172
|
return;
|
173
|
173
|
|
174
|
|
- var noMic = $("#" + this.videoSpanId + " > .noMic");
|
175
|
|
- var noVideo = $("#" + this.videoSpanId + " > .noVideo");
|
|
174
|
+ var noMic = this.$container.find('.noMic');
|
|
175
|
+ var noVideo = this.$container.find('.noVideo');
|
176
|
176
|
|
177
|
177
|
noMic.remove();
|
178
|
178
|
noVideo.remove();
|
|
@@ -249,7 +249,7 @@ SmallVideo.getStreamElementID = function (stream) {
|
249
|
249
|
*/
|
250
|
250
|
SmallVideo.prototype.bindHoverHandler = function () {
|
251
|
251
|
// Add hover handler
|
252
|
|
- $(this.container).hover(
|
|
252
|
+ this.$container.hover(
|
253
|
253
|
() => {
|
254
|
254
|
this.videoIsHovered = true;
|
255
|
255
|
this.updateView();
|
|
@@ -429,7 +429,7 @@ SmallVideo.prototype.removeModeratorIndicator = function () {
|
429
|
429
|
* array (after checking its length of course!).
|
430
|
430
|
*/
|
431
|
431
|
SmallVideo.prototype.selectVideoElement = function () {
|
432
|
|
- return $(RTCUIHelper.findVideoElement($('#' + this.videoSpanId)[0]));
|
|
432
|
+ return $(RTCUIHelper.findVideoElement(this.container));
|
433
|
433
|
};
|
434
|
434
|
|
435
|
435
|
/**
|
|
@@ -439,7 +439,7 @@ SmallVideo.prototype.selectVideoElement = function () {
|
439
|
439
|
* element which displays the user's avatar.
|
440
|
440
|
*/
|
441
|
441
|
SmallVideo.prototype.$avatar = function () {
|
442
|
|
- return $('#' + this.videoSpanId + ' .avatar-container');
|
|
442
|
+ return this.$container.find('.avatar-container');
|
443
|
443
|
};
|
444
|
444
|
|
445
|
445
|
/**
|
|
@@ -449,7 +449,7 @@ SmallVideo.prototype.$avatar = function () {
|
449
|
449
|
* the video thumbnail
|
450
|
450
|
*/
|
451
|
451
|
SmallVideo.prototype.$displayName = function () {
|
452
|
|
- return $('#' + this.videoSpanId + ' .displayNameContainer');
|
|
452
|
+ return this.$container.find('.displayNameContainer');
|
453
|
453
|
};
|
454
|
454
|
|
455
|
455
|
/**
|
|
@@ -498,13 +498,13 @@ SmallVideo.prototype.removeDisplayName = function () {
|
498
|
498
|
*/
|
499
|
499
|
SmallVideo.prototype.focus = function(isFocused) {
|
500
|
500
|
var focusedCssClass = "videoContainerFocused";
|
501
|
|
- var isFocusClassEnabled = $(this.container).hasClass(focusedCssClass);
|
|
501
|
+ var isFocusClassEnabled = this.$container.hasClass(focusedCssClass);
|
502
|
502
|
|
503
|
503
|
if (!isFocused && isFocusClassEnabled) {
|
504
|
|
- $(this.container).removeClass(focusedCssClass);
|
|
504
|
+ this.$container.removeClass(focusedCssClass);
|
505
|
505
|
}
|
506
|
506
|
else if (isFocused && !isFocusClassEnabled) {
|
507
|
|
- $(this.container).addClass(focusedCssClass);
|
|
507
|
+ this.$container.addClass(focusedCssClass);
|
508
|
508
|
}
|
509
|
509
|
};
|
510
|
510
|
|
|
@@ -608,8 +608,8 @@ SmallVideo.prototype.updateView = function () {
|
608
|
608
|
|| displayMode === DISPLAY_AVATAR_WITH_NAME));
|
609
|
609
|
// show hide overlay when there is a video or avatar under
|
610
|
610
|
// the display name
|
611
|
|
- UIUtil.setVisibleBySelector($('#' + this.videoSpanId
|
612
|
|
- + ' .videocontainer__hoverOverlay'),
|
|
611
|
+ UIUtil.setVisibleBySelector(this.$container.find(
|
|
612
|
+ '.videocontainer__hoverOverlay'),
|
613
|
613
|
(displayMode === DISPLAY_AVATAR_WITH_NAME
|
614
|
614
|
|| displayMode === DISPLAY_VIDEO_WITH_NAME));
|
615
|
615
|
};
|
|
@@ -738,7 +738,7 @@ SmallVideo.prototype.initBrowserSpecificProperties = function() {
|
738
|
738
|
if (userAgent.indexOf("QtWebEngine") > -1
|
739
|
739
|
&& (userAgent.indexOf("Windows") > -1
|
740
|
740
|
|| userAgent.indexOf("Linux") > -1)) {
|
741
|
|
- $('#' + this.videoSpanId).css("overflow", "hidden");
|
|
741
|
+ this.$container.css("overflow", "hidden");
|
742
|
742
|
}
|
743
|
743
|
};
|
744
|
744
|
|