|
@@ -214,6 +214,13 @@ export class VideoContainer extends LargeContainer {
|
214
|
214
|
|
215
|
215
|
this.$wrapper = $('#largeVideoWrapper');
|
216
|
216
|
|
|
217
|
+ /**
|
|
218
|
+ * FIXME: currently using parent() because I can't come up with name
|
|
219
|
+ * for id. We'll need to probably refactor the HTML related to the large
|
|
220
|
+ * video anyway.
|
|
221
|
+ */
|
|
222
|
+ this.$wrapperParent = this.$wrapper.parent();
|
|
223
|
+
|
217
|
224
|
this.avatarHeight = $("#dominantSpeakerAvatar").height();
|
218
|
225
|
|
219
|
226
|
var onPlayingCallback = function (event) {
|
|
@@ -524,7 +531,7 @@ export class VideoContainer extends LargeContainer {
|
524
|
531
|
}
|
525
|
532
|
|
526
|
533
|
return new Promise((resolve) => {
|
527
|
|
- this.$wrapper.css('visibility', 'visible').fadeTo(
|
|
534
|
+ this.$wrapperParent.css('visibility', 'visible').fadeTo(
|
528
|
535
|
FADE_DURATION_MS,
|
529
|
536
|
1,
|
530
|
537
|
() => {
|
|
@@ -539,15 +546,14 @@ export class VideoContainer extends LargeContainer {
|
539
|
546
|
// as the container is hidden/replaced by another container
|
540
|
547
|
// hide its avatar
|
541
|
548
|
this.showAvatar(false);
|
542
|
|
-
|
543
|
549
|
// its already hidden
|
544
|
550
|
if (!this.isVisible) {
|
545
|
551
|
return Promise.resolve();
|
546
|
552
|
}
|
547
|
553
|
|
548
|
554
|
return new Promise((resolve) => {
|
549
|
|
- this.$wrapper.fadeTo(FADE_DURATION_MS, 0, () => {
|
550
|
|
- this.$wrapper.css('visibility', 'hidden');
|
|
555
|
+ this.$wrapperParent.fadeTo(FADE_DURATION_MS, 0, () => {
|
|
556
|
+ this.$wrapperParent.css('visibility', 'hidden');
|
551
|
557
|
this.isVisible = false;
|
552
|
558
|
resolve();
|
553
|
559
|
});
|