ds-site/Resources/Private/Partials/Video.html

24 lines
1.1 KiB
HTML
Raw Normal View History

<html xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<figure>
<video controls {f:if(condition: video.properties.poster.publicUrl, then: 'poster="{video.properties.poster.publicUrl}"')}>
2020-08-24 08:02:12 +02:00
<source src="{video.publicUrl}" type="video/mp4">
<p>
Sorry, your browser doesn't support embedded videos.<br>
You can find the raw video file here: <a href="{video.publicUrl}">{video.publicUrl}</a>.
</p>
</video>
<figcaption>
2020-09-25 14:06:05 +02:00
<p>
Video v{video.originalFile.uid}: {video.title}<br>
Size: {video.size -> f:format.bytes(decimals: 2)}
<f:if condition="{video.properties.youtube}">
<br>
YouTube: <f:link.typolink parameter="https://www.youtube.com/watch?v={video.properties.youtube}" target="_blank">{video.properties.youtube}</f:link.typolink>
</f:if>
</p>
<p>{video.description -> f:format.nl2br()}</p>
</figcaption>
</figure>
</html>