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:
damencho 2021-06-04 16:12:33 -05:00 committed by Дамян Минков
parent 5f657a7d6c
commit 4fc9aed708
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}
};
/**