Rendering video using media content object
One of the new features in TYPO3 4.3 is a new multimedia content object. In this recipe, we will make use of this object to render a video. This method can be used to embed videos in the frontend of the site, allowing visitors to play them from within the page without requiring them to download the file and open it in an external application.
Getting ready
We will render a video in MPG format. Other formats can be rendered just as easily as well, so you can give it a try using the same procedure. Be sure to upload a video into the fileadmin
folder. See the There's more... section to see how to render a video from a URL.
Make sure your template record includes the CSS Styled Content static template, otherwise, you will get an error:
ERROR: Content Element type "media" has no rendering definition!
How to do it...
1. Create a New content element, and select Media type from the Special elements section as shown in the following screenshot:
2. Under relative...