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(large-video) Call play() whenever a new stream is attached to large-video. This fixes an issue on Safari where black video is rendered sometimes whenever a new stream is attached to the large video container.

Jaya Allamsetty6348840cbddb
diff --git a/modules/UI/videolayout/VideoContainer.js b/modules/UI/videolayout/VideoContainer.js
index 7752b38f8d..c8b945130b 100644
--- a/modules/UI/videolayout/VideoContainer.js
+++ b/modules/UI/videolayout/VideoContainer.js
@@ -495,6 +495,10 @@ export class VideoContainer extends LargeContainer {
stream.attach(this.$video[0]);
+ // Ensure large video gets play() called on it when a new stream is attached to it. This is necessary in the
+ // case of Safari as autoplay doesn't kick-in automatically on Safari 15 and newer versions.
+ browser.isWebKitBased() && this.$video[0].play();
+
const flipX = stream.isLocal() && this.localFlipX && !this.isScreenSharing();
this.$video.css({