Преглед изворни кода

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

master
damencho пре 9 година
родитељ
комит
ca56734d9c

+ 1
- 2
modules/UI/videolayout/LocalVideo.js Прегледај датотеку

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

+ 1
- 2
modules/UI/videolayout/RemoteVideo.js Прегледај датотеку

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

+ 2
- 1
modules/UI/videolayout/SmallVideo.js Прегледај датотеку

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

Loading…
Откажи
Сачувај