mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix video thumbnail on Safari browser (#5184)
This commit is contained in:
parent
18375ab321
commit
1852a106f1
@ -5,6 +5,7 @@
|
|||||||
- Fix #5176: Closing the action confirmation modal window on top close icon
|
- Fix #5176: Closing the action confirmation modal window on top close icon
|
||||||
- Fix #5177: Move directory widgets
|
- Fix #5177: Move directory widgets
|
||||||
- Enh #5049: Required profile field should not be required in administration (Fix for checkbox field type)
|
- 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)
|
1.9.0-beta.2 (July 14, 2021)
|
||||||
|
@ -52,25 +52,25 @@ $galleryColumnClass = ThemeHelper::isFluid() ? $fluidColumnClass : $nonFluidCol
|
|||||||
<?php if (FileHelper::getExtension($video->file_name) === 'webm'): ?>
|
<?php if (FileHelper::getExtension($video->file_name) === 'webm'): ?>
|
||||||
<div class="<?= $fullWidthColumnClass ?>">
|
<div class="<?= $fullWidthColumnClass ?>">
|
||||||
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.webm" title="<?= Html::encode($video->file_name) ?>">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php elseif (FileHelper::getExtension($video->file_name) === 'mp4'): ?>
|
<?php elseif (FileHelper::getExtension($video->file_name) === 'mp4'): ?>
|
||||||
<div class="<?= $fullWidthColumnClass ?>">
|
<div class="<?= $fullWidthColumnClass ?>">
|
||||||
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.mp4" title="<?= Html::encode($video->file_name) ?>">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php elseif (FileHelper::getExtension($video->file_name) === 'ogv'): ?>
|
<?php elseif (FileHelper::getExtension($video->file_name) === 'ogv'): ?>
|
||||||
<div class="<?= $fullWidthColumnClass ?>">
|
<div class="<?= $fullWidthColumnClass ?>">
|
||||||
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.ogv" title="<?= Html::encode($video->file_name) ?>">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php elseif (FileHelper::getExtension($video->file_name) === 'mov'): ?>
|
<?php elseif (FileHelper::getExtension($video->file_name) === 'mov'): ?>
|
||||||
<div class="<?= $fullWidthColumnClass ?>">
|
<div class="<?= $fullWidthColumnClass ?>">
|
||||||
<a data-ui-gallery="<?= 'gallery-' . $object->getUniqueId() ?>" href="<?= $video->getUrl(); ?>#.mov" title="<?= Html::encode($video->file_name) ?>">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user