mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 18:07:46 +00:00
fix(FilmStrip): Add check for thumbnails
This commit is contained in:
@@ -216,24 +216,24 @@ const FilmStrip = {
|
||||
|
||||
return new Promise(resolve => {
|
||||
let thumbs = this.getThumbs(!forceUpdate);
|
||||
|
||||
thumbs.localThumb.animate({
|
||||
height: local.thumbHeight,
|
||||
width: local.thumbWidth
|
||||
}, {
|
||||
queue: false,
|
||||
duration: animate ? 500 : 0,
|
||||
complete: resolve
|
||||
});
|
||||
|
||||
thumbs.remoteThumbs.animate({
|
||||
height: remote.thumbHeight,
|
||||
width: remote.thumbWidth
|
||||
}, {
|
||||
queue: false,
|
||||
duration: animate ? 500 : 0,
|
||||
complete: resolve
|
||||
});
|
||||
if(thumbs.localThumb)
|
||||
thumbs.localThumb.animate({
|
||||
height: local.thumbHeight,
|
||||
width: local.thumbWidth
|
||||
}, {
|
||||
queue: false,
|
||||
duration: animate ? 500 : 0,
|
||||
complete: resolve
|
||||
});
|
||||
if(thumbs.remoteThumbs)
|
||||
thumbs.remoteThumbs.animate({
|
||||
height: remote.thumbHeight,
|
||||
width: remote.thumbWidth
|
||||
}, {
|
||||
queue: false,
|
||||
duration: animate ? 500 : 0,
|
||||
complete: resolve
|
||||
});
|
||||
|
||||
this.filmStrip.animate({
|
||||
// adds 2 px because of small video 1px border
|
||||
@@ -270,4 +270,4 @@ const FilmStrip = {
|
||||
|
||||
};
|
||||
|
||||
export default FilmStrip;
|
||||
export default FilmStrip;
|
||||
|
||||
Reference in New Issue
Block a user