Commit 8ee4d4af authored by Laurent's avatar Laurent

Allow fullscreen videos on author page

parent d7f7b4c6
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()));
......
Markdown is supported
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