From 1acd7d6235e7d5d4d223b4772aad0261c7f332d4 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 25 Mar 2016 10:34:21 +0000 Subject: [PATCH] #fluidbook-html5 : fix mp3 not being added to html5 package Fix https links for video embeds --- inc/ws/Util/html5/class.ws.html5.links.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/ws/Util/html5/class.ws.html5.links.php b/inc/ws/Util/html5/class.ws.html5.links.php index 7e7ac6e8d..15569a635 100644 --- a/inc/ws/Util/html5/class.ws.html5.links.php +++ b/inc/ws/Util/html5/class.ws.html5.links.php @@ -512,7 +512,7 @@ class videoLink extends wsHTML5Link { class videoPopupLink extends normalLink { public function getURL() { - $this->copyExternalFile($this->to, true); + $this->copyExternalFile($this->to, false); $file = $this->to; $e = explode('.', $file); $ext = array_pop($e); @@ -538,7 +538,7 @@ class videoPopupLink extends normalLink { class audioPopupLink extends normalLink { public function getURL() { - $this->copyExternalFile($this->to, true); + $this->copyExternalFile($this->to, false); $file = $this->to; $e = explode('.', $file); $ext = array_pop($e); @@ -573,14 +573,14 @@ class webVideoLink extends videoLink { public function getEmbedURL() { if ($this->video_service == 0) { - $url = 'http://www.youtube.com/embed/' . $this->to . '?html5=1'; + $url = 'https://www.youtube.com/embed/' . $this->to . '?html5=1'; } elseif ($this->video_service == 1) { - $url = 'http://www.dailymotion.com/embed/video/' . $this->to; + $url = 'https://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'; + $url = 'https://link.brightcove.com/services/player/bcpid' . $playerId . '?bctid=' . $videoId . '&autoStart=false&width=100%25&height=100%25'; } return $url; } -- 2.39.5