|
@@ -9,6 +9,9 @@ import {
|
9
|
9
|
pinParticipant
|
10
|
10
|
} from '../../../react/features/base/participants';
|
11
|
11
|
|
|
12
|
+import { SHARED_VIDEO_CONTAINER_TYPE } from '../shared_video/SharedVideo';
|
|
13
|
+import SharedVideoThumb from '../shared_video/SharedVideoThumb';
|
|
14
|
+
|
12
|
15
|
import Filmstrip from './Filmstrip';
|
13
|
16
|
import UIEvents from '../../../service/UI/UIEvents';
|
14
|
17
|
import UIUtil from '../util/UIUtil';
|
|
@@ -16,6 +19,7 @@ import UIUtil from '../util/UIUtil';
|
16
|
19
|
import RemoteVideo from './RemoteVideo';
|
17
|
20
|
import LargeVideoManager from './LargeVideoManager';
|
18
|
21
|
import { VIDEO_CONTAINER_TYPE } from './VideoContainer';
|
|
22
|
+
|
19
|
23
|
import LocalVideo from './LocalVideo';
|
20
|
24
|
|
21
|
25
|
const remoteVideos = {};
|
|
@@ -434,15 +438,32 @@ const VideoLayout = {
|
434
|
438
|
},
|
435
|
439
|
|
436
|
440
|
/**
|
437
|
|
- * Creates or adds a participant container for the given id and smallVideo.
|
|
441
|
+ * Creates a participant container for the given id.
|
438
|
442
|
*
|
439
|
|
- * @param {JitsiParticipant} user the participant to add
|
|
443
|
+ * @param {Object} participant - The redux representation of a remote
|
|
444
|
+ * participant.
|
|
445
|
+ * @returns {void}
|
440
|
446
|
*/
|
441
|
|
- addParticipantContainer(user) {
|
442
|
|
- const id = user.getId();
|
443
|
|
- const remoteVideo = new RemoteVideo(user, VideoLayout, eventEmitter);
|
|
447
|
+ addRemoteParticipantContainer(participant) {
|
|
448
|
+ if (!participant || participant.local) {
|
|
449
|
+ return;
|
|
450
|
+ } else if (participant.isBot) {
|
|
451
|
+ const sharedVideoThumb = new SharedVideoThumb(
|
|
452
|
+ participant,
|
|
453
|
+ SHARED_VIDEO_CONTAINER_TYPE,
|
|
454
|
+ VideoLayout);
|
|
455
|
+
|
|
456
|
+ this.addRemoteVideoContainer(participant.id, sharedVideoThumb);
|
|
457
|
+
|
|
458
|
+ return;
|
|
459
|
+ }
|
|
460
|
+
|
|
461
|
+ const id = participant.id;
|
|
462
|
+ const jitsiParticipant = APP.conference.getParticipantById(id);
|
|
463
|
+ const remoteVideo
|
|
464
|
+ = new RemoteVideo(jitsiParticipant, VideoLayout, eventEmitter);
|
444
|
465
|
|
445
|
|
- this._setRemoteControlProperties(user, remoteVideo);
|
|
466
|
+ this._setRemoteControlProperties(jitsiParticipant, remoteVideo);
|
446
|
467
|
this.addRemoteVideoContainer(id, remoteVideo);
|
447
|
468
|
|
448
|
469
|
this.updateMutedForNoTracks(id, 'audio');
|