Moves VideoLayout reference in SmallVideo as it is used there in updateView.
This commit is contained in:
parent
6955bb71f3
commit
ca56734d9c
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue