]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 11 Jun 2015 16:24:35 +0000 (16:24 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 11 Jun 2015 16:24:35 +0000 (16:24 +0000)
inc/ws/Util/html5/class.ws.html5.links.php

index 7ecdfb2e4b44f5d446063780527e2df00adda1ff..cc1f9fbd4f623aa4127402125ebb2359545ef455 100644 (file)
@@ -529,8 +529,13 @@ class webVideoLink extends videoLink {
        public function getEmbedURL() {
                if ($this->video_service == 0) {
                        $url = 'http://www.youtube.com/embed/' . $this->to . '?html5=1';
-               } else {
+               } elseif ($this->video_service == 1) {
                        $url = 'http://www.dailymotion.com/embed/video/' . $this->to;
+               } elseif ($this->video_service == 2) {
+                       $url = '';
+               } elseif ($this->video_service == 3) {
+                       list($playerId, $videoId) = explode('|', $this->to);
+                       $url = 'http://link.brightcove.com/services/player/bcpid' . $playerId . '?bctid=' . $videoId . '&autoStart=false&width=100%25&height=100%25';
                }
                return $url;
        }
@@ -776,6 +781,10 @@ class webVideoPopupLink extends videoPopupLink {
                        $service = 'youtube';
                } elseif ($this->video_service == 1) {
                        $service = 'dailymotion';
+               } elseif ($this->video_service == 2) {
+                       $service = 'vimeo';
+               } elseif ($this->video_service == 3) {
+                       $service = 'brightcove';
                }
                return '#/webvideo/' . $service . '/' . $this->to;
        }