Quellcode durchsuchen

fix: Fixes playing muted youtube video.

If we mute a video in Youtube it is stored in the current browser session and if someone shares a video it will start muted and we don't have the control to unmute it.
master
damencho vor 4 Jahren
Ursprung
Commit
4fc9aed708

+ 6
- 0
react/features/shared-video/components/web/YoutubeVideoManager.js Datei anzeigen

@@ -195,6 +195,12 @@ class YoutubeVideoManager extends AbstractVideoManager<Props> {
195 195
         }
196 196
 
197 197
         this.play();
198
+
199
+        // sometimes youtube can get muted state from previous videos played in the browser
200
+        // and as we are disabling controls we want to unmute it
201
+        if (this.isMuted()) {
202
+            this.unMute();
203
+        }
198 204
     };
199 205
 
200 206
     /**

Laden…
Abbrechen
Speichern