$w = $this->width;
$h = $this->height;
$this->copyExternalFile($this->alternative);
- $alt = '<img data-width="' . $w . '" data-height="' . $h . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
+ $alt = '<img class="multimediaimage" data-width="' . $w . '" data-height="' . $h . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $w . '" height="' . $h . '" />';
return $alt;
}
} 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 = '';
+ $url = 'https://player.vimeo.com/video/' . $this->to;
} elseif ($this->video_service == 3) {
list($playerId, $videoId) = explode('|', $this->to);
$url = 'https://link.brightcove.com/services/player/bcpid' . $playerId . '?bctid=' . $videoId . '&autoStart=false&width=100%25&height=100%25';
// }
public function getURL() {
- return '#/video/' . $this->to;
+
+ switch($this->video_service) {
+ case 1: // Dailymotion
+ return '#/webvideo/dailymotion/' . $this->to;
+ break;
+ case 2: // Vimeo
+ return '#/webvideo/vimeo/' . $this->to;
+ break;
+ default:
+ return '#/video/' . $this->to;
+ }
}
public function getAdditionnalContent() {