|
@@ -88,6 +88,7 @@ export default class SmallVideo {
|
88
|
88
|
this.audioStream = null;
|
89
|
89
|
this.VideoLayout = VideoLayout;
|
90
|
90
|
this.videoIsHovered = false;
|
|
91
|
+ this.videoType = undefined;
|
91
|
92
|
|
92
|
93
|
/**
|
93
|
94
|
* The current state of the user's bridge connection. The value should be
|
|
@@ -243,6 +244,7 @@ export default class SmallVideo {
|
243
|
244
|
*/
|
244
|
245
|
setScreenSharing(isScreenSharing) {
|
245
|
246
|
this.isScreenSharing = isScreenSharing;
|
|
247
|
+ this.updateView();
|
246
|
248
|
this.updateStatusBar();
|
247
|
249
|
}
|
248
|
250
|
|
|
@@ -463,8 +465,10 @@ export default class SmallVideo {
|
463
|
465
|
* or <tt>DISPLAY_BLACKNESS_WITH_NAME</tt>.
|
464
|
466
|
*/
|
465
|
467
|
selectDisplayMode(input) {
|
466
|
|
- // Display name is always and only displayed when user is on the stage
|
467
|
|
- if (input.isCurrentlyOnLargeVideo && !input.tileViewActive) {
|
|
468
|
+ if (!input.tileViewActive && input.isScreenSharing) {
|
|
469
|
+ return input.isHovered ? DISPLAY_AVATAR_WITH_NAME : DISPLAY_AVATAR;
|
|
470
|
+ } else if (input.isCurrentlyOnLargeVideo && !input.tileViewActive) {
|
|
471
|
+ // Display name is always and only displayed when user is on the stage
|
468
|
472
|
return input.isVideoPlayable && !input.isAudioOnly ? DISPLAY_BLACKNESS_WITH_NAME : DISPLAY_AVATAR_WITH_NAME;
|
469
|
473
|
} else if (input.isVideoPlayable && input.hasVideo && !input.isAudioOnly) {
|
470
|
474
|
// check hovering and change state to video with name
|
|
@@ -493,6 +497,7 @@ export default class SmallVideo {
|
493
|
497
|
canPlayEventReceived: this._canPlayEventReceived,
|
494
|
498
|
videoStream: Boolean(this.videoStream),
|
495
|
499
|
isVideoMuted: this.isVideoMuted,
|
|
500
|
+ isScreenSharing: this.isScreenSharing,
|
496
|
501
|
videoStreamMuted: this.videoStream ? this.videoStream.isMuted() : 'no stream'
|
497
|
502
|
};
|
498
|
503
|
}
|