]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7433 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 14:57:26 +0000 (16:57 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 14:57:26 +0000 (16:57 +0200)
app/Models/Traits/PublicationSettings.php

index 79872a82d294edbd9cfa57d14f27f2cebc574a90..bdbaa0ae934d76764a67d08578f6bf7a681568c5 100644 (file)
@@ -1171,7 +1171,13 @@ trait PublicationSettings
         $this->addSettingField('webvideoAsLocal', Hidden::class, $this->__('Intégrer les webvidéos en local'), [
             'default' => false,
         ]);
-        //$this->addSettingField('', FormSeparator::class);
+        $this->addSettingField('videoObjectFit', SelectFromArray::class, $this->__('Affichage des vidéos inline'), ['default' => 'fill','hint'=>'<a target="_blank" href="https://developer.mozilla.org/fr-FR/docs/Web/CSS/object-fit">https://developer.mozilla.org/fr-FR/docs/Web/CSS/object-fit</a>
+', 'options' => [
+            'fill' => $this->__('Etirer la vidéo pour qu\'elle occupe l\'espace disponible') . ' (fill)',
+            'contain' => $this->__('Afficher la vidéo en respectant son ratio mais sans la recadrer') . ' (contain)',
+            'cover' => $this->__('Afficher la vidéo en respectant son ratio et en la recadrant pour qu\'elle occupe l\'espace disponible') . ' (cover)',
+        ]]);
+        $this->addSettingField('', FormSeparator::class);
         $this->addSettingField('brightcovePlayerId', LongText::class, $this->__('Identifiant du player Brightcove'));
         $this->addSettingField('brightcovePlayerSecret', LongText::class, $this->__('Secret du player Brightcove'));
         $this->addSettingField('', FormSeparator::class);