|
|
|
|
@ -277,6 +277,9 @@ class VideoContainer extends LargeContainer { |
|
|
|
|
this.stream = stream; |
|
|
|
|
this.videoType = videoType; |
|
|
|
|
|
|
|
|
|
if(!stream) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
stream.attach(this.$video); |
|
|
|
|
|
|
|
|
|
let flipX = stream.isLocal() && !this.isScreenSharing(); |
|
|
|
|
@ -421,7 +424,7 @@ export default class LargeVideoManager { |
|
|
|
|
// change the avatar url on large
|
|
|
|
|
this.updateAvatar(Avatar.getAvatarUrl(id)); |
|
|
|
|
|
|
|
|
|
let isVideoMuted = stream.isMuted(); |
|
|
|
|
let isVideoMuted = stream? stream.isMuted() : true; |
|
|
|
|
|
|
|
|
|
// show the avatar on large if needed
|
|
|
|
|
this.videoContainer.showAvatar(isVideoMuted); |
|
|
|
|
@ -443,19 +446,18 @@ export default class LargeVideoManager { |
|
|
|
|
/** |
|
|
|
|
* Update large video. |
|
|
|
|
* Switches to large video even if previously other container was visible. |
|
|
|
|
* @param userID the userID of the participant associated with the stream |
|
|
|
|
* @param {JitsiTrack?} stream new stream |
|
|
|
|
* @param {string?} videoType new video type |
|
|
|
|
* @returns {Promise} |
|
|
|
|
*/ |
|
|
|
|
updateLargeVideo (stream, videoType) { |
|
|
|
|
let id = getStreamOwnerId(stream); |
|
|
|
|
|
|
|
|
|
updateLargeVideo (userID, stream, videoType) { |
|
|
|
|
if (this.newStreamData) { |
|
|
|
|
this.newStreamData.reject(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.newStreamData = createDeferred(); |
|
|
|
|
this.newStreamData.id = id; |
|
|
|
|
this.newStreamData.id = userID; |
|
|
|
|
this.newStreamData.stream = stream; |
|
|
|
|
this.newStreamData.videoType = videoType; |
|
|
|
|
|
|
|
|
|
|