Browse Source

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 years ago
parent
commit
4fc9aed708

+ 6
- 0
react/features/shared-video/components/web/YoutubeVideoManager.js View File

195
         }
195
         }
196
 
196
 
197
         this.play();
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
     /**

Loading…
Cancel
Save