ds-site/Resources/Private/Templates/Backend/ContentElements/Video.html
Daniel Siepmann 746aaf3285 Add basic video content element and first video
Allow to render videos with native HTML5 support in browser.
A first example video is also added to fileadmin.
2020-08-19 23:01:35 +02:00

22 lines
771 B
HTML

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
data-namespace-typo3-fluid="true">
<a href="{be:uri.editRecord(
uid: uid,
table: 'tt_content'
)}">
<f:for each="{videos}" as="video">
<figure>
<video controls preload="metadata">
<source src="/{video.publicUrl}" type="video/mp4">
</video>
<figcaption>
<p>
Video v{video.originalFile.uid}: {video.title}<br>
{video.description -> f:format.nl2br()}
</p>
</figcaption>
</figure>
</f:for>
</a>
</html>