diff --git a/CHANGELOG.md b/CHANGELOG.md index d25ccfd..8886fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 8.x-1.0-alpha3 +* Updated embed source url to resolve cors-errors. + # 8.x-1.0-alpha2 * Added support for www2-subdomain. * Added support for thumbnails diff --git a/src/Plugin/video_embed_field/Provider/UniTube.php b/src/Plugin/video_embed_field/Provider/UniTube.php index 473554c..9152910 100644 --- a/src/Plugin/video_embed_field/Provider/UniTube.php +++ b/src/Plugin/video_embed_field/Provider/UniTube.php @@ -26,7 +26,7 @@ public function renderEmbedCode($width, $height, $autoplay) { '#suffix' => '', '#type' => 'video_embed_iframe', '#provider' => 'unitube', - '#url' => sprintf('https://webcast.helsinki.fi/unitube/embed.html?id=%s&play=false', $this->getVideoId()), + '#url' => sprintf('https://unitube.it.helsinki.fi/unitube/embed.html?id=%s&play=false', $this->getVideoId()), '#attributes' => [ 'width' => $width, 'height' => $height, @@ -34,7 +34,7 @@ public function renderEmbedCode($width, $height, $autoplay) { 'marginheight' => '0px', 'marginwidth' => '0px', 'frameborder' => '0', - 'allowfullscreen' => 'allowfullscreen', + 'allowfullscreen' => 'true', ], ]; }