Procházet zdrojové kódy

Moves VideoLayout reference in SmallVideo as it is used there in updateView.

master
damencho před 9 roky
rodič
revize
ca56734d9c

+ 1
- 2
modules/UI/videolayout/LocalVideo.js Zobrazit soubor

@@ -13,7 +13,6 @@ function LocalVideo(VideoLayout, emitter) {
13 13
     this.videoSpanId = "localVideoContainer";
14 14
     this.container = $("#localVideoContainer").get(0);
15 15
     this.bindHoverHandler();
16
-    this.VideoLayout = VideoLayout;
17 16
     this.flipX = true;
18 17
     this.isLocal = true;
19 18
     this.emitter = emitter;
@@ -22,7 +21,7 @@ function LocalVideo(VideoLayout, emitter) {
22 21
             return APP.conference.localId;
23 22
         }
24 23
     });
25
-    SmallVideo.call(this);
24
+    SmallVideo.call(this, VideoLayout);
26 25
 }
27 26
 
28 27
 LocalVideo.prototype = Object.create(SmallVideo.prototype);

+ 1
- 2
modules/UI/videolayout/RemoteVideo.js Zobrazit soubor

@@ -11,14 +11,13 @@ function RemoteVideo(id, VideoLayout, emitter) {
11 11
     this.id = id;
12 12
     this.emitter = emitter;
13 13
     this.videoSpanId = `participant_${id}`;
14
-    this.VideoLayout = VideoLayout;
14
+    SmallVideo.call(this, VideoLayout);
15 15
     this.addRemoteVideoContainer();
16 16
     this.connectionIndicator = new ConnectionIndicator(this, id);
17 17
     this.setDisplayName();
18 18
     this.bindHoverHandler();
19 19
     this.flipX = false;
20 20
     this.isLocal = false;
21
-    SmallVideo.call(this);
22 21
 }
23 22
 
24 23
 RemoteVideo.prototype = Object.create(SmallVideo.prototype);

+ 2
- 1
modules/UI/videolayout/SmallVideo.js Zobrazit soubor

@@ -5,12 +5,13 @@ import UIUtil from "../util/UIUtil";
5 5
 
6 6
 const RTCUIHelper = JitsiMeetJS.util.RTCUIHelper;
7 7
 
8
-function SmallVideo() {
8
+function SmallVideo(VideoLayout) {
9 9
     this.isMuted = false;
10 10
     this.hasAvatar = false;
11 11
     this.isVideoMuted = false;
12 12
     this.videoStream = null;
13 13
     this.audioStream = null;
14
+    this.VideoLayout = VideoLayout;
14 15
 }
15 16
 
16 17
 function setVisibility(selector, show) {

Načítá se…
Zrušit
Uložit