From a16bd10bd8be21fa1fe95cb1a5cc49162d74eeed Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 3 Oct 2025 14:07:04 +0200 Subject: [PATCH] wip #7700 @0.5 --- src/Compiler/Links.php | 4 ++-- src/Links/VideoBackgroundLink.php | 1 + src/Links/VideoLink.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Compiler/Links.php b/src/Compiler/Links.php index 514e971..6a57480 100644 --- a/src/Compiler/Links.php +++ b/src/Compiler/Links.php @@ -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; diff --git a/src/Links/VideoBackgroundLink.php b/src/Links/VideoBackgroundLink.php index ba51302..9634f52 100644 --- a/src/Links/VideoBackgroundLink.php +++ b/src/Links/VideoBackgroundLink.php @@ -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); } } diff --git a/src/Links/VideoLink.php b/src/Links/VideoLink.php index 6292e24..ee7508c 100644 --- a/src/Links/VideoLink.php +++ b/src/Links/VideoLink.php @@ -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'; -- 2.39.5