Bläddra i källkod

Merge pull request #932 from jitsi/fix_jibri

fix(FilmStrip): Add check for thumbnails
j8
Emil Ivov 9 år sedan
förälder
incheckning
a35e194a2d
1 ändrade filer med 19 tillägg och 19 borttagningar
  1. 19
    19
      modules/UI/videolayout/FilmStrip.js

+ 19
- 19
modules/UI/videolayout/FilmStrip.js Visa fil

@@ -216,24 +216,24 @@ const FilmStrip = {
216 216
 
217 217
         return new Promise(resolve => {
218 218
             let thumbs = this.getThumbs(!forceUpdate);
219
-
220
-            thumbs.localThumb.animate({
221
-                height: local.thumbHeight,
222
-                width: local.thumbWidth
223
-            }, {
224
-                queue: false,
225
-                duration: animate ? 500 : 0,
226
-                complete:  resolve
227
-            });
228
-
229
-            thumbs.remoteThumbs.animate({
230
-                height: remote.thumbHeight,
231
-                width: remote.thumbWidth
232
-            }, {
233
-                queue: false,
234
-                duration: animate ? 500 : 0,
235
-                complete:  resolve
236
-            });
219
+            if(thumbs.localThumb)
220
+                thumbs.localThumb.animate({
221
+                    height: local.thumbHeight,
222
+                    width: local.thumbWidth
223
+                }, {
224
+                    queue: false,
225
+                    duration: animate ? 500 : 0,
226
+                    complete:  resolve
227
+                });
228
+            if(thumbs.remoteThumbs)
229
+                thumbs.remoteThumbs.animate({
230
+                    height: remote.thumbHeight,
231
+                    width: remote.thumbWidth
232
+                }, {
233
+                    queue: false,
234
+                    duration: animate ? 500 : 0,
235
+                    complete:  resolve
236
+                });
237 237
 
238 238
             this.filmStrip.animate({
239 239
                 // adds 2 px because of small video 1px border
@@ -270,4 +270,4 @@ const FilmStrip = {
270 270
 
271 271
 };
272 272
 
273
-export default FilmStrip;
273
+export default FilmStrip;

Laddar…
Avbryt
Spara