Skip to content
Snippets Groups Projects
Commit 8ee4d4af authored by Laurent's avatar Laurent
Browse files

Allow fullscreen videos on author page

parent d7f7b4c6
Branches
Tags
3 merge requests!3297WIP: Master,!2995Sandbox author page ina,!2990Sandbox author page ina
Pipeline #6223 failed with stage
in 28 minutes and 20 seconds
......@@ -41,7 +41,9 @@ class AuthorController extends ZendAfi_Controller_Action {
foreach((new Class_WebService_Youtube())
->videosOfChannel($author->getYoutubeChannelId()) as $video) {
$items[] = $this->view->tag('div',
$this->view->tag('iframe', '', ['src' => $video->getEmbedUrl()])
$this->view->tag('iframe', '', ['src' => $video->getEmbedUrl(),
'allow' => 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture',
'allowfullscreen' => 'true'])
.
$this->view->tag('h3', $video->getTitle()));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment