¿Por qué este tipo de mimo es incorrecto?

A HTML5 video I am implementing is not working in Internet Explorer 9. After some debugging, I found that the mime type of the mp4 file is as application/octet-stream. However, in my .htaccess file I have,

AddType video/ogg  .ogv
AddType video/mp4  .mp4
AddType video/webm .webm

What have I missed in defining mime types?

preguntado el 01 de febrero de 12 a las 04:02

Does your server configuration allow parsing .htaccess files? Are your .htaccess files allowed to override the AddType MIME types? -

How can I check to see if I'm allowed to override the AddType MIME? Yes my server allows parsing of .htaccess - I am using it a lot. -

Estarías buscando AllowOverride FileInfo o una mas general AllowOverride configuración ... -

Yeah, that has to be done in the main configuration -- if anyone could supply their own .htaccess that granted them access to overriding everything, there wouldn't be much point to it, right? :) -

It appears when I loaded the mp4 file from my site it worked just fine - it was when loading it from the CDN that the MIME type was lost. -

2 Respuestas

La respuesta es:

The MIME types you add on your server cannot override the MIME type on the remote server. If the files hosted elsewhere are stored as a different MIME type, then it will not work. Make sure that the MIME type on the CDN is correct.

Respondido 08 Feb 12, 04:02

  • Does the mp4 video URI have a .mp4 extension?
  • Does your VirtualHost/server configuration allow for .htaccess files (AllowOverride directive)?

Respondido 01 Feb 12, 08:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.