Project

General

Profile

Actions

Bug #81817

closed

Video Mime Type is missing

Added by Alexander Henz over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2017-07-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
On Location Sprint

Description

I recently uploaded a mp4 file, which was not rendered correctly. Instead of using the <video> Tag, it was rendered as an <img>.

I checked the MIME type of the mp4 it was 'video/x-m4v'.

In typo3\sysext\core\Classes\Resource\Rendering\VideoTagRenderer.php this MIME type is missing:

protected $possibleMimeTypes = ['video/mp4', 'video/webm', 'video/ogg', 'application/ogg'];

I changed it into

protected $possibleMimeTypes = ['video/mp4', 'video/webm', 'video/ogg', 'application/ogg', 'video/x-m4v'];

Now it works fine.

Actions

Also available in: Atom PDF