|
|
@@ -326,16 +326,18 @@ var VideoLayout = {
|
|
326
|
326
|
this.updateLargeVideo(resourceJid);
|
|
327
|
327
|
},
|
|
328
|
328
|
|
|
329
|
|
-
|
|
330
|
329
|
/**
|
|
331
|
|
- * Checks if container for participant identified by given id exists
|
|
332
|
|
- * in the document and creates it eventually.
|
|
333
|
|
- *
|
|
334
|
|
- * @return Returns <tt>true</tt> if the peer container exists,
|
|
335
|
|
- * <tt>false</tt> - otherwise
|
|
|
330
|
+ * Creates a remote video for participant for the given id.
|
|
|
331
|
+ * @param id the id of the participant to add
|
|
|
332
|
+ * @param {SmallVideo} smallVideo optional small video instance to add as a
|
|
|
333
|
+ * remote video, if undefined RemoteVideo will be created
|
|
336
|
334
|
*/
|
|
337
|
|
- addParticipantContainer (id) {
|
|
338
|
|
- let remoteVideo = new RemoteVideo(id, VideoLayout, eventEmitter);
|
|
|
335
|
+ addParticipantContainer (id, smallVideo) {
|
|
|
336
|
+ let remoteVideo;
|
|
|
337
|
+ if(smallVideo)
|
|
|
338
|
+ remoteVideo = smallVideo;
|
|
|
339
|
+ else
|
|
|
340
|
+ remoteVideo = new RemoteVideo(id, VideoLayout, eventEmitter);
|
|
339
|
341
|
remoteVideos[id] = remoteVideo;
|
|
340
|
342
|
|
|
341
|
343
|
let videoType = remoteVideoTypes[id];
|