MediaViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\MediaViewHelper

Extends
AbstractTagBasedViewHelper

ViewHelper to render a given media file (audio/video/images) with the correct HTML tag.

It utilizes the RendererRegistry to determine the correct Renderer class. When no renderer can be resolved, it will fall back to use the default ImageViewHelper for regular images.

  <f:media file="{file}" width="400" height="375" />

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-media
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-image
see
RendererRegistry

Table of Contents

Properties

$tagName  : string

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string
Render a given media file.

Properties

Methods

initializeArguments()

public initializeArguments() : void

render()

Render a given media file.

public render() : string

Return values

string
On this page