|
@@ -361,6 +361,9 @@ export class VideoContainer extends LargeContainer {
|
361
|
361
|
this.$video.css({
|
362
|
362
|
transform: flipX ? 'scaleX(-1)' : 'none'
|
363
|
363
|
});
|
|
364
|
+
|
|
365
|
+ // Reset the large video background depending on the stream.
|
|
366
|
+ this.setLargeVideoBackground(this.avatarDisplayed);
|
364
|
367
|
}
|
365
|
368
|
|
366
|
369
|
/**
|
|
@@ -395,8 +398,7 @@ export class VideoContainer extends LargeContainer {
|
395
|
398
|
// default background set.
|
396
|
399
|
// In order to fix this code we need to introduce video background or
|
397
|
400
|
// find a workaround for the video flickering.
|
398
|
|
- $("#largeVideoContainer").css("background",
|
399
|
|
- (show) ? interfaceConfig.DEFAULT_BACKGROUND : "#000");
|
|
401
|
+ this.setLargeVideoBackground(show);
|
400
|
402
|
|
401
|
403
|
this.$avatar.css("visibility", show ? "visible" : "hidden");
|
402
|
404
|
this.avatarDisplayed = show;
|
|
@@ -465,4 +467,19 @@ export class VideoContainer extends LargeContainer {
|
465
|
467
|
stayOnStage () {
|
466
|
468
|
return false;
|
467
|
469
|
}
|
|
470
|
+
|
|
471
|
+ /**
|
|
472
|
+ * Sets the large video container background depending on the container
|
|
473
|
+ * type and the parameter indicating if an avatar is currently shown on
|
|
474
|
+ * large.
|
|
475
|
+ *
|
|
476
|
+ * @param {boolean} isAvatar - Indicates if the avatar is currently shown
|
|
477
|
+ * on the large video.
|
|
478
|
+ * @returns {void}
|
|
479
|
+ */
|
|
480
|
+ setLargeVideoBackground (isAvatar) {
|
|
481
|
+ $("#largeVideoContainer").css("background",
|
|
482
|
+ (this.videoType === VIDEO_CONTAINER_TYPE && !isAvatar)
|
|
483
|
+ ? "#000" : interfaceConfig.DEFAULT_BACKGROUND);
|
|
484
|
+ }
|
468
|
485
|
}
|