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(filmstirp): remove animate flag from resizeThumbnails

Leonard Kim2ce3c2d459b3
diff --git a/modules/UI/shared_video/SharedVideo.js b/modules/UI/shared_video/SharedVideo.js
index 51a0fb6cd4..609a04ef9b 100644
--- a/modules/UI/shared_video/SharedVideo.js
+++ b/modules/UI/shared_video/SharedVideo.js
@@ -286,7 +286,7 @@ export default class SharedVideoManager {
thumb.setDisplayName('YouTube');
VideoLayout.addRemoteVideoContainer(self.url, thumb);
- VideoLayout.resizeThumbnails(false, true);
+ VideoLayout.resizeThumbnails(true);
const iframe = player.getIframe();
diff --git a/modules/UI/videolayout/Filmstrip.js b/modules/UI/videolayout/Filmstrip.js
index a12c69d633..41d6531b31 100644
--- a/modules/UI/videolayout/Filmstrip.js
+++ b/modules/UI/videolayout/Filmstrip.js
@@ -438,12 +438,11 @@ const Filmstrip = {
* Resizes thumbnails
* @param local
* @param remote
- * @param animate
* @param forceUpdate
* @returns {Promise}
*/
- // eslint-disable-next-line max-params, no-unused-vars
- resizeThumbnails(local, remote, animate = false, forceUpdate = false) {
+ // eslint-disable-next-line max-params
+ resizeThumbnails(local, remote, forceUpdate = false) {
const thumbs = this.getThumbs(!forceUpdate);
if (thumbs.localThumb) {
diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js
index d741e1eacc..2986c4c0b2 100644
--- a/modules/UI/videolayout/RemoteVideo.js
+++ b/modules/UI/videolayout/RemoteVideo.js
@@ -95,7 +95,7 @@ RemoteVideo.prototype.addRemoteVideoContainer = function() {
this.updateRemoteVideoMenu();
- this.VideoLayout.resizeThumbnails(false, true);
+ this.VideoLayout.resizeThumbnails(true);
this.addAudioLevelIndicator();
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index f3723b7596..989e41ccf4 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -74,7 +74,7 @@ const VideoLayout = {
// if we do not resize the thumbs here, if there is no video device
// the local video thumb maybe one pixel
- this.resizeThumbnails(false, true);
+ this.resizeThumbnails(true);
this.handleVideoThumbClicked = this.handleVideoThumbClicked.bind(this);
@@ -468,7 +468,7 @@ const VideoLayout = {
remoteVideo.setVideoType(VIDEO_CONTAINER_TYPE);
}
- VideoLayout.resizeThumbnails(false, true);
+ VideoLayout.resizeThumbnails(true);
// Initialize the view
remoteVideo.updateView();
@@ -480,7 +480,7 @@ const VideoLayout = {
logger.info(`${resourceJid} video is now active`, videoElement);
VideoLayout.resizeThumbnails(
- false, false, () => {
+ false, () => {
if (videoElement) {
$(videoElement).show();
}
@@ -575,14 +575,12 @@ const VideoLayout = {
* Resizes thumbnails.
*/
resizeThumbnails(
- animate = false,
forceUpdate = false,
onComplete = null) {
const { localVideo, remoteVideo }
= Filmstrip.calculateThumbnailSize();
- Filmstrip.resizeThumbnails(localVideo, remoteVideo,
- animate, forceUpdate);
+ Filmstrip.resizeThumbnails(localVideo, remoteVideo, forceUpdate);
if (onComplete && typeof onComplete === 'function') {
onComplete();
@@ -878,7 +876,7 @@ const VideoLayout = {
}
// Resize the thumbnails first.
- this.resizeThumbnails(false, forceUpdate);
+ this.resizeThumbnails(forceUpdate);
// Resize the video area element.
$('#videospace').animate({