protected function compile()
{
$size = \StringUtil::deserialize($this->playerSize);
if (!is_array($size) || empty($size[0]) || empty($size[1])) {
$this->Template->size = ' width="640" height="360"';
} else {
$this->Template->size = ' width="' . $size[0] . '" height="' . $size[1] . '"';
}
$url = 'https://player.vimeo.com/video/' . $this->vimeo;
if ($this->autoplay) {
$url .= '?autoplay=1';
}
$this->Template->src = $url;
}