]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5919
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 May 2023 14:32:49 +0000 (16:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 May 2023 14:32:49 +0000 (16:32 +0200)
app/Fluidbook/Link/Link.php

index 8266f5fb3d982d68256895b2e56fda20bb746c26..3f62b081a83a22dc98b6ca6c84934b278181c3d8 100644 (file)
@@ -91,6 +91,9 @@ class Link extends \Fluidbook\Tools\Links\Link
                 }
             case Link::WEBVIDEO:
                 if ($compiler->getSetting('webvideoAsLocal', false)) {
+                    if (!isset($init['video_service'])) {
+                        return parent::getInstance($id, $init, $compiler);
+                    }
                     switch ($init['video_service']) {
                         case 'youtube':
                             $url = 'https://www.youtube.com/watch?v=' . $init['to'];
@@ -113,6 +116,7 @@ class Link extends \Fluidbook\Tools\Links\Link
                         $init['to'] = $file->getFilename();
                         $init['video_sound_on'] = true;
                         $init['video_controls'] = true;
+                        $init['video_loop'] = false;
                         $dest = $compiler->getWorkingDir() . $file->getFilename();
                         if (file_exists($dest)) {
                             unlink($dest);