Actions
Task #90011
closedMedia renderer cleanup
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2019-12-25
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
renderer
Complexity:
easy
Sprint Focus:
Description
I ran into a use case where I have to override the HTML rendered by the Core media renderers (TYPO3\CMS\Core\Resource\Rendering
).
A renderer usually consists of two parts: preparing the settings and rendering the tag.
In most renderers this is done in render()
method. That means that someone who wants to change the rendered HTML tag has to also copy the options that are set inside the tag.
Additionally most of the code is quite similar.
Both YouTube- and Vimeo-Renderers only differ in the URL generated and the options being available.
The HTML5 Video- and Audio-Renderers only differ in the tag that is rendered and the attributes "width" and "height" being missing from audio.
Actions