{
$attr['name'] = videoPopupLink::getBasename($data->to);
+ if (CubeIT_Util_Url::isDistant($data->to)) {
+ $attr['url'] = $data->to;
+ }
$attr['id'] = 'video_' . $data->id;
$attr['autoplay'] = ($data->video_auto_start ? '1' : '0');
$attr['controls'] = ($data->video_controls ? '1' : '0');
public function getAdditionnalContent()
{
$this->video_auto_start = true; // Videos should always autoplay
- return ' data-video="' . rawurlencode(videoLink::makeVideoTag($this, null, null, $this->compiler)) . '" ';
+ $this->video_sound_on = true;
+ $this->video_controls = true;
+ return ' data-video="' . rawurlencode(videoLink::makeVideoTag($this, $this->video_width, $this->video_height, $this->compiler)) . '" ';
}
public function keep()