Correct mime type for .mp4
I have two applications as mentioned below:
As of now I have added mime type video/mp4
for .mp4 in IIS7 mime types section.
When I am trying to download the .mp4 file in iPad I am seeing a dark black screen with cross arrow on it. Can anyone please help me to resolve the issue.
Please tell me whether the mime type video/mp4
for .mp4 is correct.
According to RFC 4337 § 2, video/mp4
is indeed the correct Content-Type for MPEG-4 video.
Generally, you can find official MIME definitions by searching for the file extension and "IETF" or "RFC". The RFC (Request for Comments) articles published by the IETF (Internet Engineering Taskforce) define many Internet standards, including MIME types.
video/mp4
should be used when you have video content in your file. If there is none, but there is audio, you should use audio/mp4
. If no audio and no video is used, for instance if the file contains only a subtitle track or a metadata track, the MIME should be application/mp4
. Also, as a server, you should try to include the codecs
or profiles
parameters as defined in RFC6381, as this will help clients determine if they can play the file, prior to downloading it.
I've encountered an issue similar to what you're describing when (using an App on my iPhone and they're both running iOS) attempting to download an MP4 video file.
I had to reconfigure my MIME settings within the App so it 'recognized' the MP4 video file. This was suggested:
mp4/*
and worked instantly. Now every time I'm online and tap an MP4 video, the App asks, do you want to open or save?
链接地址: http://www.djcxy.com/p/47080.html上一篇: 创建tarball时排除公共子目录
下一篇: 修正.mp4的mime类型