From: Vincent Vanwaelscappel Date: Thu, 12 Feb 2026 18:14:39 +0000 (+0100) Subject: wip #8000 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c4220530c8edc26d74dde9843577828aca0168d7;p=fluidbook_tools.git wip #8000 @1 --- diff --git a/src/Links/VideoLink.php b/src/Links/VideoLink.php index dfe9785..1e6b4d9 100644 --- a/src/Links/VideoLink.php +++ b/src/Links/VideoLink.php @@ -77,7 +77,7 @@ class VideoLink extends Link $attr['stats-name'] = $attr['name']; $attr['stats-type'] = 'video'; if (Url::isDistant($data->to)) { - $attr['url'] = $data->to; + $attr['url'] = $compiler->shortenURL($data->to); } $attr['id'] = 'video_' . $data->id; $attr['autoplay'] = ($data->video_auto_start ? '1' : '0'); diff --git a/src/Links/WebVideoLink.php b/src/Links/WebVideoLink.php index fa7980e..b9c8171 100644 --- a/src/Links/WebVideoLink.php +++ b/src/Links/WebVideoLink.php @@ -59,7 +59,7 @@ class WebVideoLink extends VideoLink 'sources' => [ [ 'type' => 'video/youtube', - 'src' => 'https://www.youtube.com/watch?v=' . $data->to + 'src' => $compiler->shortenURL('https://www.youtube.com/watch?v=' . $data->to) ] ], "youtube" => ["loop" => $data->video_loop, 'showinfo' => '0', 'cc_load_policy' => '1', 'ytControls' => '1'],