Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref(filmstrip): create an empty container for local filmstrip move (#3303)

virtuacoplenny34d1eb6768e0
diff --git a/modules/UI/shared_video/SharedVideoThumb.js b/modules/UI/shared_video/SharedVideoThumb.js
index e92c2db3bf..bdffe7d6c5 100644
--- a/modules/UI/shared_video/SharedVideoThumb.js
+++ b/modules/UI/shared_video/SharedVideoThumb.js
@@ -50,10 +50,14 @@ SharedVideoThumb.prototype.createContainer = function(spanId) {
displayNameContainer.className = 'displayNameContainer';
container.appendChild(displayNameContainer);
- const remotes = document.getElementById('filmstripRemoteVideosContainer');
+ const remoteVideosContainer
+ = document.getElementById('filmstripRemoteVideosContainer');
+ const localVideoContainer
+ = document.getElementById('localVideoTileViewContainer');
+ remoteVideosContainer.insertBefore(container, localVideoContainer);
- return remotes.appendChild(container);
+ return container;
};
/**
diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js
index df3965165c..c5b8e5f931 100644
--- a/modules/UI/videolayout/RemoteVideo.js
+++ b/modules/UI/videolayout/RemoteVideo.js
@@ -642,10 +642,14 @@ RemoteVideo.createContainer = function(spanId) {
<div class ='presence-label-container'></div>
<span class = 'remotevideomenu'></span>`;
- const remotes = document.getElementById('filmstripRemoteVideosContainer');
+ const remoteVideosContainer
+ = document.getElementById('filmstripRemoteVideosContainer');
+ const localVideoContainer
+ = document.getElementById('localVideoTileViewContainer');
+ remoteVideosContainer.insertBefore(container, localVideoContainer);
- return remotes.appendChild(container);
+ return container;
};
export default RemoteVideo;
diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.js
index a0967768b0..1f0f9f34a5 100644
--- a/react/features/filmstrip/components/web/Filmstrip.js
+++ b/react/features/filmstrip/components/web/Filmstrip.js
@@ -119,7 +119,9 @@ class Filmstrip extends Component <Props> {
className = 'remote-videos-container'
id = 'filmstripRemoteVideosContainer'
onMouseOut = { this._onMouseOut }
- onMouseOver = { this._onMouseOver } />
+ onMouseOver = { this._onMouseOver }>
+ <div id = 'localVideoTileViewContainer' />
+ </div>
</div>
</div>
</div>