diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.js index d69a22e21..11ee2e5e0 100644 --- a/modules/UI/videolayout/LocalVideo.js +++ b/modules/UI/videolayout/LocalVideo.js @@ -17,7 +17,10 @@ const TrackEvents = JitsiMeetJS.events.track; function LocalVideo(VideoLayout, emitter) { this.videoSpanId = "localVideoContainer"; - this.container = $("#localVideoContainer").get(0); + + this.container = this.createContainer(); + $("#filmstripLocalVideo").append(this.container); + this.localVideoId = null; this.bindHoverHandler(); if(config.enableLocalVideoFlip) @@ -46,6 +49,27 @@ function LocalVideo(VideoLayout, emitter) { LocalVideo.prototype = Object.create(SmallVideo.prototype); LocalVideo.prototype.constructor = LocalVideo; +LocalVideo.prototype.createContainer = function () { + const containerSpan = document.createElement('span'); + containerSpan.classList.add('videocontainer'); + containerSpan.id = this.videoSpanId; + + containerSpan.innerHTML = ` +
+ + +
+
+
+
+
`; + + return containerSpan; +}; + /** * Sets the display name for the given video span id. */ diff --git a/react/features/filmstrip/components/Filmstrip.web.js b/react/features/filmstrip/components/Filmstrip.web.js index 9c345ae56..c0e1fe5d8 100644 --- a/react/features/filmstrip/components/Filmstrip.web.js +++ b/react/features/filmstrip/components/Filmstrip.web.js @@ -52,23 +52,7 @@ class Filmstrip extends Component { id = 'remoteVideos'>
- -
- -