Skip to content

Commit

Permalink
Merge branch 'release/1.0-alpha3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Sinisalo committed Mar 1, 2022
2 parents 5aa080b + 3b0b842 commit 71266d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/video_embed_field/Provider/UniTube.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public function renderEmbedCode($width, $height, $autoplay) {
'#suffix' => '</div>',
'#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,
'scrolling' => 'no',
'marginheight' => '0px',
'marginwidth' => '0px',
'frameborder' => '0',
'allowfullscreen' => 'allowfullscreen',
'allowfullscreen' => 'true',
],
];
}
Expand Down

0 comments on commit 71266d4

Please sign in to comment.