ref(filmstirp): remove animate flag from resizeThumbnails
The flag is always false.
This commit is contained in:
parent
8363f3cfeb
commit
2ce3c2d459
|
@ -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();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -95,7 +95,7 @@ RemoteVideo.prototype.addRemoteVideoContainer = function() {
|
|||
|
||||
this.updateRemoteVideoMenu();
|
||||
|
||||
this.VideoLayout.resizeThumbnails(false, true);
|
||||
this.VideoLayout.resizeThumbnails(true);
|
||||
|
||||
this.addAudioLevelIndicator();
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue