}
public function getHTMLContent() {
- //return $this->getEmbed();
+
+ if ($this->video_service !== 0) {
+ return $this->getEmbed();
+ }
$w = round($this->width * $this->getCssScale());
$h = round($this->height * $this->getCssScale());
} elseif ($this->video_service == 1) {
$url = 'https://www.dailymotion.com/embed/video/' . $this->to;
} elseif ($this->video_service == 2) {
+ //Todo: get vimeo embed URL
$url = '';
} elseif ($this->video_service == 3) {
list($playerId, $videoId) = explode('|', $this->to);