]> _ Git - fluidbook_tools.git/commitdiff
wip #7700 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 3 Oct 2025 12:07:04 +0000 (14:07 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 3 Oct 2025 12:07:04 +0000 (14:07 +0200)
src/Compiler/Links.php
src/Links/VideoBackgroundLink.php
src/Links/VideoLink.php

index 514e9713b67f85efdce4719e6df8ce04fafc0f15..6a574803f044cc382b8a3572aaaebb737872e40f 100644 (file)
@@ -241,7 +241,7 @@ trait Links
 
     protected function getLinksFromPDF()
     {
-        $booleans = ['video_loop', 'video_auto_start', 'video_controls', 'video_sound_on', 'video_cc'];
+        $booleans = ['video_loop', 'video_auto_start', 'video_controls', 'video_sound_on', 'video_cc', 'video_autohide'];
         $numbers = ['left', 'top', 'width', 'height'];
 
         $links = [];
@@ -266,7 +266,7 @@ trait Links
                 }
                 $link = ['uid' => self::makeUID()];
 
-                $cols = ['page' => '', 'left' => '', 'top' => '', 'width' => '', 'height' => '', 'type' => '', 'to' => '', 'target' => '_blank', 'video_loop' => true, 'video_auto_start' => true, 'video_controls' => true, 'video_sound_on' => true, 'video_cc' => true, 'tooltip' => '', 'image_rollover' => '', 'numerotation' => 'physical', "inline" => true];
+                $cols = ['page' => '', 'left' => '', 'top' => '', 'width' => '', 'height' => '', 'type' => '', 'to' => '', 'target' => '_blank', 'video_loop' => true, 'video_auto_start' => true, 'video_controls' => true, 'video_sound_on' => true, 'video_cc' => true, 'video_autohide' => false, 'tooltip' => '', 'image_rollover' => '', 'numerotation' => 'physical', "inline" => true];
 
                 $k = 0;
 
index ba513025fe4e14415d2503029bd3df56a115a56b..9634f5225ff942108f79ef6be0ed75e922206e5c 100644 (file)
@@ -20,6 +20,7 @@ class VideoBackgroundLink extends VideoLink
         $init['video_controls'] = false;
         $init['video_auto_start'] = true;
         $init['video_cc'] = false;
+        $init['video_autohide'] = false;
         parent::__construct($id, $init, $compiler);
     }
 }
index 6292e24bb5d15e06f25fcf32ffb8e2a9af133df9..ee7508c2a90fc92aa67fa63cc9663fad15d58580 100644 (file)
@@ -84,6 +84,7 @@ class VideoLink extends Link
         $attr['loop'] = ($data->video_loop ? '1' : '0');
         $attr['sound'] = ($data->video_sound_on ? '1' : '0');
         $attr['cc'] = (($data->video_cc ?? '1') ? '1' : '0');
+        $attr['autohide'] = (($data->video_autohide ?? '1') ? '1' : '0');
         $attr['hidelinksonplay'] = $data->hidelinksonplay;
         $attr['link-id'] = $data->uid;
         $attr['backgroundcolor'] = $data->backgroundColor ?? '#000000';