Quellcode durchsuchen

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.
master
Jaya Allamsetty vor 3 Jahren
Ursprung
Commit
6348840cbd
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4
    0
      modules/UI/videolayout/VideoContainer.js

+ 4
- 0
modules/UI/videolayout/VideoContainer.js Datei anzeigen

@@ -495,6 +495,10 @@ export class VideoContainer extends LargeContainer {
495 495
 
496 496
         stream.attach(this.$video[0]);
497 497
 
498
+        // Ensure large video gets play() called on it when a new stream is attached to it. This is necessary in the
499
+        // case of Safari as autoplay doesn't kick-in automatically on Safari 15 and newer versions.
500
+        browser.isWebKitBased() && this.$video[0].play();
501
+
498 502
         const flipX = stream.isLocal() && this.localFlipX && !this.isScreenSharing();
499 503
 
500 504
         this.$video.css({

Laden…
Abbrechen
Speichern