Fullscreen youtube

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-31 17:26:05 +02:00
parent 37263182cc
commit e2c2417104
@@ -13,7 +13,7 @@ class MediaYoutube extends MediaRenderer{
$size = self::$SIZES[$opt["size"]];
}
// return $this->link;
return '<iframe itemprop="video" width='.$size["width"].' height='.$size["height"].' src="'.$this->getVideoLink().'" frameborder="0"></iframe>';
return '<iframe itemprop="video" width='.$size["width"].' height='.$size["height"].' src="'.$this->getVideoLink().'" frameborder="0" allowfullscreen="1"></iframe>';
// return '<iframe width="560" height="315" src="https://www.youtube.com/embed/4qkv-iy_MaQ" frameborder="0" allowfullscreen></iframe>';
}