From 7ccc78743cfd125cca3ea403a6e55452b2b0b90c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 27 Feb 2026 17:20:52 +0100 Subject: [PATCH] wait #8028 @1 --- src/Links/WebVideoLink.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Links/WebVideoLink.php b/src/Links/WebVideoLink.php index 4b93c3b..2befb25 100644 --- a/src/Links/WebVideoLink.php +++ b/src/Links/WebVideoLink.php @@ -101,7 +101,7 @@ class WebVideoLink extends VideoLink public function getHTMLContent() { if (!self::supportVideoJS($this->video_service)) { - return self::getEmbed($this); + return self::getEmbed($this, $this->compiler, null, null); } $w = round($this->width * $this->getCssScale()); @@ -110,7 +110,7 @@ class WebVideoLink extends VideoLink return self::makeVideoTag($this, $w, $h, $this->compiler); } - public static function getEmbed($link, $width = null, $height = null) + public static function getEmbed($link, $compiler = null, $width = null, $height = null) { if (null === $width) { $width = $link->width; @@ -118,10 +118,10 @@ class WebVideoLink extends VideoLink if (null === $height) { $height = $link->height; } - return ''; + return ''; } - public static function getEmbedURL($data) + public static function getEmbedURL($data, $compiler) { $muted = (!$data->video_sound_on) ? '1' : '0'; $autoplay = $data->video_auto_start ? '1' : '0'; @@ -154,7 +154,7 @@ class WebVideoLink extends VideoLink } return $url; default: - return $data->to; + return $compiler->shortenURL($data->to); } } @@ -164,7 +164,7 @@ class WebVideoLink extends VideoLink if (self::supportVideoJS($link->video_service)) { return parent::makeVideoTag($link, $width, $height, $compiler); } - return self::getEmbed($link); + return self::getEmbed($link, $compiler); } protected static function supportVideoJS($service) -- 2.39.5