[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: |
|
||||
| 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, |
| Comments |
| Comment by Natascha Desmarais [ 02/Dec/11 ] |
|
Instead of AddMimeMappingTask it would be better to use bootstraps as previously done in
|
| 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, |