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.
This commit is contained in:
parent
5f657a7d6c
commit
4fc9aed708
|
@ -195,6 +195,12 @@ class YoutubeVideoManager extends AbstractVideoManager<Props> {
|
|||
}
|
||||
|
||||
this.play();
|
||||
|
||||
// sometimes youtube can get muted state from previous videos played in the browser
|
||||
// and as we are disabling controls we want to unmute it
|
||||
if (this.isMuted()) {
|
||||
this.unMute();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue