From 468c8677d14a24f4b0e991cdb0e07767cfd71f29 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Fri, 2 Jun 2017 10:30:35 +0000 Subject: [PATCH] WIP #897 --- inc/ws/Util/html5/html5video/class.ws.html5.links.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/html5video/class.ws.html5.links.php b/inc/ws/Util/html5/html5video/class.ws.html5.links.php index 2327439d4..0721047de 100644 --- a/inc/ws/Util/html5/html5video/class.ws.html5.links.php +++ b/inc/ws/Util/html5/html5video/class.ws.html5.links.php @@ -693,7 +693,10 @@ class webVideoLink extends videoLink { } 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()); @@ -711,6 +714,7 @@ class webVideoLink extends videoLink { } 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); -- 2.39.5