Daniel Siepmann
746aaf3285
Allow to render videos with native HTML5 support in browser. A first example video is also added to fileadmin.
22 lines
771 B
HTML
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>
|