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