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:
Shawn Landden 2012-05-17 17:20:15 -07:00
parent 77a242da69
commit a31c0374b0
2 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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" }
};