|
@@ -17,7 +17,10 @@ const TrackEvents = JitsiMeetJS.events.track;
|
17
|
17
|
|
18
|
18
|
function LocalVideo(VideoLayout, emitter) {
|
19
|
19
|
this.videoSpanId = "localVideoContainer";
|
20
|
|
- this.container = $("#localVideoContainer").get(0);
|
|
20
|
+
|
|
21
|
+ this.container = this.createContainer();
|
|
22
|
+ $("#filmstripLocalVideo").append(this.container);
|
|
23
|
+
|
21
|
24
|
this.localVideoId = null;
|
22
|
25
|
this.bindHoverHandler();
|
23
|
26
|
if(config.enableLocalVideoFlip)
|
|
@@ -46,6 +49,27 @@ function LocalVideo(VideoLayout, emitter) {
|
46
|
49
|
LocalVideo.prototype = Object.create(SmallVideo.prototype);
|
47
|
50
|
LocalVideo.prototype.constructor = LocalVideo;
|
48
|
51
|
|
|
52
|
+LocalVideo.prototype.createContainer = function () {
|
|
53
|
+ const containerSpan = document.createElement('span');
|
|
54
|
+ containerSpan.classList.add('videocontainer');
|
|
55
|
+ containerSpan.id = this.videoSpanId;
|
|
56
|
+
|
|
57
|
+ containerSpan.innerHTML = `
|
|
58
|
+ <div class = 'videocontainer__background'></div>
|
|
59
|
+ <span id = 'localVideoWrapper'></span>
|
|
60
|
+ <audio
|
|
61
|
+ autoplay = true
|
|
62
|
+ id = 'localAudio'
|
|
63
|
+ muted = true></audio>
|
|
64
|
+ <div class = 'videocontainer__toolbar'></div>
|
|
65
|
+ <div class = 'videocontainer__toptoolbar'></div>
|
|
66
|
+ <div class = 'videocontainer__hoverOverlay'></div>
|
|
67
|
+ <div class = 'displayNameContainer'></div>
|
|
68
|
+ <div class = 'avatar-container'></div>`;
|
|
69
|
+
|
|
70
|
+ return containerSpan;
|
|
71
|
+};
|
|
72
|
+
|
49
|
73
|
/**
|
50
|
74
|
* Sets the display name for the given video span id.
|
51
|
75
|
*/
|