From: Vincent Vanwaelscappel Date: Thu, 4 May 2023 13:49:28 +0000 (+0200) Subject: wait #5911 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=42b554ccf2a2066c3e97966b18a205dd57ce3482;p=fluidbook-toolbox.git wait #5911 @0:20 --- diff --git a/app/Fluidbook/Links.php b/app/Fluidbook/Links.php index 4b8e1a817..b000b3fde 100644 --- a/app/Fluidbook/Links.php +++ b/app/Fluidbook/Links.php @@ -7,6 +7,7 @@ use App\Models\User; use Cubist\Util\Files\Files; use Cubist\Util\Gzip; use Cubist\Util\Str; +use Cubist\Util\WebVideo; use Fluidbook\Tools\Links\Link; use PhpOffice\PhpSpreadsheet\Cell\DataType; use PhpOffice\PhpSpreadsheet\Exception; @@ -549,6 +550,14 @@ class Links $link['to'] = ''; } + $webvideo = WebVideo::parse($link['to'], true); + if ($webvideo !== false) { + $link['type'] = '10'; + $link['video_service'] = $webvideo['service']; + $link['inline'] = 'popup'; + $link['to'] = $webvideo['id']; + } + $link['display_area'] = '1'; $link['page'] = $page; $link['uid'] = self::generateUID();