]> _ Git - cubeextranet.git/commitdiff
WIP #897
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 2 Jun 2017 10:30:35 +0000 (10:30 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 2 Jun 2017 10:30:35 +0000 (10:30 +0000)
inc/ws/Util/html5/html5video/class.ws.html5.links.php

index 2327439d498c16605b3f24943de251a93e49fded..0721047decdcbd2e1011ff6f4fe9012f3c488dd5 100644 (file)
@@ -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);