|
@@ -369,6 +369,17 @@ SmallVideo.prototype.hasVideo = function () {
|
369
|
369
|
return this.selectVideoElement().length !== 0;
|
370
|
370
|
};
|
371
|
371
|
|
|
372
|
+/**
|
|
373
|
+ * Checks whether the user associated with this <tt>SmallVideo</tt> is currently
|
|
374
|
+ * being displayed on the "large video".
|
|
375
|
+ *
|
|
376
|
+ * @return {boolean} <tt>true</tt> if the user is displayed on the large video
|
|
377
|
+ * or <tt>false</tt> otherwise.
|
|
378
|
+ */
|
|
379
|
+SmallVideo.prototype.isCurrentlyOnLargeVideo = function () {
|
|
380
|
+ return this.VideoLayout.isCurrentlyOnLarge(this.id);
|
|
381
|
+};
|
|
382
|
+
|
372
|
383
|
/**
|
373
|
384
|
* Hides or shows the user's avatar.
|
374
|
385
|
* This update assumes that large video had been updated and we will
|
|
@@ -392,7 +403,7 @@ SmallVideo.prototype.updateView = function () {
|
392
|
403
|
|
393
|
404
|
let avatar = this.$avatar;
|
394
|
405
|
|
395
|
|
- var isCurrentlyOnLarge = this.VideoLayout.isCurrentlyOnLarge(this.id);
|
|
406
|
+ var isCurrentlyOnLarge = this.isCurrentlyOnLargeVideo();
|
396
|
407
|
|
397
|
408
|
var showVideo = !this.isVideoMuted && !isCurrentlyOnLarge;
|
398
|
409
|
var showAvatar;
|