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