浏览代码

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.
j8
damencho 4 年前
父节点
当前提交
4fc9aed708
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      react/features/shared-video/components/web/YoutubeVideoManager.js

+ 6
- 0
react/features/shared-video/components/web/YoutubeVideoManager.js 查看文件

@@ -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
     /**

正在加载...
取消
保存