mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 05:28:20 +01:00
Load only video metadata in thumbnails
This commit is contained in:
parent
0f9b8e413c
commit
076cc9c186
@ -14,7 +14,7 @@
|
||||
<?php endif ?>
|
||||
<?php if ($file->type() === 'video') : ?>
|
||||
<video class="file-thumbnail">
|
||||
<source src="<?= $file->uri() ?>" type="<?= $file->mimeType() ?>" />
|
||||
<source src="<?= $file->uri() ?>" type="<?= $file->mimeType() ?>" preload="metadata" />
|
||||
</video>
|
||||
<?php endif ?>
|
||||
<div class="file-icon"><?= $this->icon(is_null($file->type()) ? 'file' : 'file-' . $file->type()) ?></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user