Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Merge branch 'video-fadein-fix' of https://github.com/isymchych/jitsi-meet into jitsi-meet-new
damenchoe707eb9a7936
diff --cc modules/UI/videolayout/LargeVideo.jsindex 5353a8cf64,adb2791967..fe512895e3--- a/modules/UI/videolayout/LargeVideo.js+++ b/modules/UI/videolayout/LargeVideo.js@@@ -10,15 -11,13 +11,17 @@@ import {createDeferred} from '../../uticonst RTCBrowserType = require("../../RTC/RTCBrowserType");const avatarSize = interfaceConfig.DOMINANT_SPEAKER_AVATAR_SIZE;+ const FADE_DURATION_MS = 300;+/**+ * Get stream id.+ * @param {JitsiTrack?} stream+ */- function getStreamId(stream) {- if(!stream)+ function getStreamOwnerId(stream) {+ if (!stream) {return;- if (stream.isLocal()) {+ }+ if (stream.isLocal()) { // local stream doesn't have method "getParticipantId"return APP.conference.localId;} else {return stream.getParticipantId();@@@ -428,10 -396,23 +437,34 @@@ export default class LargeVideoManager});}++ /**++ * Update large video.++ * Switches to large video even if previously other container was visible.++ * @param {JitsiTrack?} stream new stream++ * @param {string?} videoType new video type++ * @returns {Promise}++ */+ updateLargeVideo (stream, videoType) {+ let id = getStreamOwnerId(stream);++ if (this.newStreamData) {+ this.newStreamData.reject();+ }++ this.newStreamData = createDeferred();+ this.newStreamData.id = id;+ this.newStreamData.stream = stream;+ this.newStreamData.videoType = videoType;++ this.scheduleLargeVideoUpdate();++ return this.newStreamData.promise;+ }++ /**+ * Update container size optionally taking side bar size into account.+ * @param {boolean} isSideBarVisible if side bar is visible.+ */updateContainerSize (isSideBarVisible) {this.width = UIUtil.getAvailableVideoWidth(isSideBarVisible);this.height = window.innerHeight;@@@ -481,12 -453,7 +514,11 @@@$("#dominantSpeakerAvatar").attr('src', avatarUrl);}+ /**+ * Show avatar on Large video container or not.+ * @param {boolean} show+ */showAvatar (show) {- show ? this.videoContainer.hide() : this.videoContainer.show();this.videoContainer.showAvatar(show);}