// if ($video && $this->fluidbookSettings->mobileVideosPath != '') {
//
// }
+
$origDir = $this->wdir;
$types = $this->getVideosFormats();
if ($video) {
'type' => __('Type'), 'to' => __('Destination'), 'target' => __('Cible'),
'tooltip' => __('Infobulle'), 'numerotation' => __('Numérotation'),
'display_area' => __('Activer la surbrillance'),
+ 'tracks' => __('Sous-titres'),
'video_loop' => __('Video : boucle'), 'video_auto_start' => __('Video : démarrage automatique'), 'video_controls' => __('Vidéo : afficher les contrôles'), 'video_sound_on' => __('Vidéo : activer le son'),
'inline' => __('Vidéo : afficher dans la page'), 'video_width' => __('Vidéo : Largeur du popup'), 'video_height' => __('Vidéo : Hauteur du popup'),
'visibility_os' => __('Visible sur les systèmes'),
'video_auto_start' => true,
'video_controls' => true,
'video_sound_on' => true,
+ 'tracks' => '',
'tooltip' => '',
'numerotation' => 'physical',
"inline" => 'inline',
protected static $_acceptImageAndZip = ['.jpg', '.jpeg', '.png', '.svg', '.gif', '.zip'];
protected static $_acceptAnimation = ['.jpg', '.jpeg', '.png', '.svg', '.gif', '.zip', '.oam', '.html', '.json', '.pdf'];
protected static $_acceptVideo = ['.mp4'];
+ protected static $_acceptSubtitles = ['.vtt'];
protected static $_acceptFont = ['.otf', '.ttf'];
protected static $_acceptAudiodescription = ['.mp3', '.txt'];
protected static $_acceptAudio = ['.mp3'];
use App\Fluidbook\Link\Link;
use Cubist\Backpack\Magic\Fields\CheckboxBasic;
use Cubist\Backpack\Magic\Fields\FilesOrURL;
+
// __('!! Editeur de liens')
class Video extends Base
{
public function addDestinationField()
{
$this->addField('to', FilesOrURL::class, __('Fichier vidéo'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptVideo]);
+ $this->addField('tracks', FilesOrURL::class, __('Sous-titres'), $this->getFilesOrURLEntry() + ['accept' => self::$_acceptSubtitles]);
}
public function addMultimediaFields()