Project

General

Profile

Actions

Task #90011

closed

Media renderer cleanup

Added by Mario Lubenka almost 5 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
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

Also available in: Atom PDF