]> _ Git - fluidbook_tools.git/commitdiff
wip #8000 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Feb 2026 11:24:42 +0000 (12:24 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 13 Feb 2026 11:24:42 +0000 (12:24 +0100)
src/Compiler/Compiler.php
src/Compiler/CompilerInterface.php
src/Compiler/DummyCompiler.php
src/Links/WebVideoLink.php

index 7c89c95c6e4abfc4008426844d90d41b9caa523c..5bdd6ac4c50103fb89f624cef5cf680765c80bd4 100644 (file)
@@ -424,7 +424,7 @@ class Compiler implements ShouldQueue, ShouldBeUnique, CompilerInterface {
         // TODO: Implement getLinkAlternativeText() method.
     }
 
-    public function shortenURL($url)
+    public function shortenURL($url, $special = false)
     {
        return $url;
     }
index 8aac38a6ddae15e34c0a95c0e091d16f43691ec9..523c9e69b51b8487bce64c1a6879ea5030ad64f2 100644 (file)
@@ -85,7 +85,7 @@ interface CompilerInterface
 
     public function getLinkAlternativeText($link);
 
-    public function shortenURL($url);
+    public function shortenURL($url, $special = false);
 
     public function addSearchWord($to,$page, $array);
 }
index 5e48271b9da11b5b94d53ce60f3d879f781d6f44..3ac98d48df1b899eff9ba5f1a12c1f0927eceb7c 100644 (file)
@@ -212,7 +212,7 @@ class DummyCompiler implements CompilerInterface
         // TODO: Implement getLinkAlternativeText() method.
     }
 
-    public function shortenURL($url)
+    public function shortenURL($url, $special = false)
     {
         return $url;
     }
index b9c8171adce0f3556a97fd5c9cc40fd262e6cbcf..4b93c3b7369023c73308068298855b73f5691991 100644 (file)
@@ -59,7 +59,7 @@ class WebVideoLink extends VideoLink
                     'sources' => [
                         [
                             'type' => 'video/youtube',
-                            'src' => $compiler->shortenURL('https://www.youtube.com/watch?v=' . $data->to)
+                            'src' => $compiler->shortenURL('https://www.youtube.com/watch?v=' . $data->to, true)
                         ]
                     ],
                     "youtube" => ["loop" => $data->video_loop, 'showinfo' => '0', 'cc_load_policy' => '1', 'ytControls' => '1'],