[MAGNOLIA-3870] Add Mime Mappings for webfont and additional audio/video formats Created: 24/Oct/11  Updated: 01/Feb/12  Resolved: 22/Dec/11

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.4.5
Fix Version/s: 4.4.6, 4.5

Type: Improvement Priority: Critical
Reporter: Matt Dertinger Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Hi,

Currently, there are no MimeMappings for webfonts and the WebM and Theora audio and video file formats. Adding the following update tasks to CoreModuleVersionHandler.java within the delta for the 4.5 release will add them.

.addTask(new AddMimeMappingTask("eot", "application/vnd.ms-fontobject", "/.resources/file-icons/eot.png"))
.addTask(new AddMimeMappingTask("oga", "audio/ogg", "/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("ogg", "video/ogg", "/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("ogv", "video/ogg", "/.resources/file-icons/ogg.png"))
.addTask(new AddMimeMappingTask("otf", "application/x-font-otf", "/.resources/file-icons/otf.png"))
.addTask(new AddMimeMappingTask("ttf", "application/x-font-ttf", "/.resources/file-icons/ttf.png"))
.addTask(new AddMimeMappingTask("weba", "audio/webm", "/.resources/file-icons/webm.png"))
.addTask(new AddMimeMappingTask("webm", "video/webm", "/.resources/file-icons/webm.png"))
.addTask(new AddMimeMappingTask("woff", "application/x-font-woff", "/.resources/file-icons/woff.png"))

Note: The tasks above reference file icons that don't yet exist. Those should probably be created and added to the magnolia-module-admininterface.

Let me know if you have any questions.

Cheers,
Matt



 Comments   
Comment by Natascha Desmarais [ 02/Dec/11 ]

Instead of AddMimeMappingTask it would be better to use bootstraps as previously done in MAGNOLIA-3767 and MAGNOLIA-3730. As Jan mentioned in one of those issues:

Jan Haderka added a comment - 08/Sep/11 5:17 PM
Different UUID between author and public could be indeed an issue if you are trying to activate those mappings which some customers do.

Comment by Natascha Desmarais [ 12/Dec/11 ]

Increasing the priority as some of those mime types are needed for the new html5-/flow-player.

Comment by Matt Dertinger [ 13/Dec/11 ]

Hi,

We may also want to add another video mime-type for .3gp files. This would support the use of Reference Movies for Safari/iOS (see Creating a Reference Movie). Additionally, it will allow delivering videos to mobile devices that don't support the h.264 codec.

If so, the proper mime-type for files with the .3gp extension would be video/3gpp.

Cheers,
Matt

Generated at Mon Feb 12 03:50:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.