Merge pull request #1984 from xansen/develop

Fix youtube not working when player is inside shadow dom
This commit is contained in:
Sam Potts 2020-10-19 22:33:52 +11:00 committed by GitHub
commit 29d3ae0b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ const youtube = {
// Setup instance
// https://developers.google.com/youtube/iframe_api_reference
player.embed = new window.YT.Player(id, {
player.embed = new window.YT.Player(player.media, {
videoId,
host: getHost(config),
playerVars: extend(