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.
pull/10330/head jitsi-meet_6563
Jaya Allamsetty 3 years ago committed by Jaya Allamsetty
parent 6a7842ab7e
commit 6348840cbd
  1. 4
      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({

Loading…
Cancel
Save