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(VideoLayout): JS error if updateLargeVideo is called too early.

hristoterezovbd449be20d30
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 9c928e7966..adeeb0f354 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -954,7 +954,7 @@ const VideoLayout = {
}
}
- if (!isOnLarge || forceUpdate) {
+ if ((!isOnLarge || forceUpdate) && smallVideo) {
const videoType = this.getRemoteVideoType(id);
// FIXME video type is not the same thing as container type