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
Moves VideoLayout reference in SmallVideo as it is used there in updateView.
damenchoca56734d9cc7
diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.jsindex c108e32522..380e9d7cc1 100644--- a/modules/UI/videolayout/LocalVideo.js+++ b/modules/UI/videolayout/LocalVideo.js@@ -13,7 +13,6 @@ function LocalVideo(VideoLayout, emitter) {this.videoSpanId = "localVideoContainer";this.container = $("#localVideoContainer").get(0);this.bindHoverHandler();- this.VideoLayout = VideoLayout;this.flipX = true;this.isLocal = true;this.emitter = emitter;@@ -22,7 +21,7 @@ function LocalVideo(VideoLayout, emitter) {return APP.conference.localId;}});- SmallVideo.call(this);+ SmallVideo.call(this, VideoLayout);}LocalVideo.prototype = Object.create(SmallVideo.prototype);diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.jsindex d9f4dae10c..60c9fbcf93 100644--- a/modules/UI/videolayout/RemoteVideo.js+++ b/modules/UI/videolayout/RemoteVideo.js@@ -11,14 +11,13 @@ function RemoteVideo(id, VideoLayout, emitter) {this.id = id;this.emitter = emitter;this.videoSpanId = `participant_${id}`;- this.VideoLayout = VideoLayout;+ SmallVideo.call(this, VideoLayout);this.addRemoteVideoContainer();this.connectionIndicator = new ConnectionIndicator(this, id);this.setDisplayName();this.bindHoverHandler();this.flipX = false;this.isLocal = false;- SmallVideo.call(this);}RemoteVideo.prototype = Object.create(SmallVideo.prototype);diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex e55eafec6b..fa5bac0bf4 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -5,12 +5,13 @@ import UIUtil from "../util/UIUtil";const RTCUIHelper = JitsiMeetJS.util.RTCUIHelper;-function SmallVideo() {+function SmallVideo(VideoLayout) {this.isMuted = false;this.hasAvatar = false;this.isVideoMuted = false;this.videoStream = null;this.audioStream = null;+ this.VideoLayout = VideoLayout;}function setVisibility(selector, show) {