mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 747257 - Part 2: Add media type mapping for .mp4. r=rillian
Associate .mp4 files with the "video/mp4" mime type so that we can open them directly via file://
This commit is contained in:
parent
77a242da69
commit
a31c0374b0
@ -161,6 +161,7 @@
|
||||
#define TEXT_EVENT_STREAM "text/event-stream"
|
||||
|
||||
#define VIDEO_MPEG "video/mpeg"
|
||||
#define VIDEO_MP4 "video/mp4"
|
||||
#define VIDEO_RAW "video/x-raw-yuv"
|
||||
#define VIDEO_OGG "video/ogg"
|
||||
#define VIDEO_WEBM "video/webm"
|
||||
|
@ -440,6 +440,9 @@ static nsDefaultMimeTypeEntry defaultMimeEntries [] =
|
||||
{ VIDEO_WEBM, "webm" },
|
||||
{ AUDIO_WEBM, "webm" },
|
||||
#endif
|
||||
#ifdef MOZ_GSTREAMER
|
||||
{ VIDEO_MP4, "mp4" },
|
||||
#endif
|
||||
#ifdef MOZ_RAW
|
||||
{ VIDEO_RAW, "yuv" }
|
||||
#endif
|
||||
@ -511,6 +514,7 @@ static nsExtraMimeTypeEntry extraMimeEntries [] =
|
||||
{ AUDIO_OGG, "opus", "Opus Audio" },
|
||||
{ VIDEO_WEBM, "webm", "Web Media Video" },
|
||||
{ AUDIO_WEBM, "webm", "Web Media Audio" },
|
||||
{ VIDEO_MP4, "mp4", "MPEG-4 Video" },
|
||||
{ VIDEO_RAW, "yuv", "Raw YUV Video" },
|
||||
{ AUDIO_WAV, "wav", "Waveform Audio" }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user