Fix video thumbnail on Safari browser (#5184)

This commit is contained in:
Yuriy Bakhtin 2021-07-21 18:41:12 +03:00 committed by GitHub
parent 18375ab321
commit 1852a106f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@
- Fix #5176: Closing the action confirmation modal window on top close icon
- Fix #5177: Move directory widgets
- Enh #5049: Required profile field should not be required in administration (Fix for checkbox field type)
- Fix #5009: Fix video thumbnail on Safari browser
1.9.0-beta.2 (July 14, 2021)

View File

@ -52,25 +52,25 @@ $galleryColumnClass = ThemeHelper::isFluid() ? $fluidColumnClass : $nonFluidCol
<?php if (FileHelper::getExtension($video->file_name) === 'webm'): ?>
<div class="<?= $fullWidthColumnClass ?>">
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.webm" title="<?= Html::encode($video->file_name) ?>">
<video src="<?= $video->getUrl() ?>" type="video/webm" controls preload="metadata" height="130"></video>
<video src="<?= $video->getUrl() ?>#t=0.001" type="video/webm" controls preload="metadata" height="130"></video>
</a>
</div>
<?php elseif (FileHelper::getExtension($video->file_name) === 'mp4'): ?>
<div class="<?= $fullWidthColumnClass ?>">
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.mp4" title="<?= Html::encode($video->file_name) ?>">
<video src="<?= $video->getUrl() ?>" type="video/mp4" controls preload="metadata" height="130"></video>
<video src="<?= $video->getUrl() ?>#t=0.001" type="video/mp4" controls preload="metadata" height="130"></video>
</a>
</div>
<?php elseif (FileHelper::getExtension($video->file_name) === 'ogv'): ?>
<div class="<?= $fullWidthColumnClass ?>">
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.ogv" title="<?= Html::encode($video->file_name) ?>">
<video src="<?= $video->getUrl() ?>" type="video/ogg" controls preload="metadata" height="130"></video>
<video src="<?= $video->getUrl() ?>#t=0.001" type="video/ogg" controls preload="metadata" height="130"></video>
</a>
</div>
<?php elseif (FileHelper::getExtension($video->file_name) === 'mov'): ?>
<div class="<?= $fullWidthColumnClass ?>">
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.mov" title="<?= Html::encode($video->file_name) ?>">
<video src="<?= $video->getUrl() ?>" type="video/quicktime" controls preload="metadata" height="130"></video>
<video src="<?= $video->getUrl() ?>#t=0.001" type="video/quicktime" controls preload="metadata" height="130"></video>
</a>
</div>
<?php endif; ?>