Skip to content

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

fix(FilmStrip): Add check for thumbnails

hristoterezov42d9d0393d43
diff --git a/modules/UI/videolayout/FilmStrip.js b/modules/UI/videolayout/FilmStrip.js
index 4dc12dcc6a..e0aa813c85 100644
--- a/modules/UI/videolayout/FilmStrip.js
+++ b/modules/UI/videolayout/FilmStrip.js
@@ -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;
\ No newline at end of file
+export default FilmStrip;