[Mono-aspnet-list] R: ASP.NET and .mp4 mime type

Ing. Antonio Anzivino anzivino at studenti.unina.it
Fri Sep 3 09:53:53 EDT 2010

This is surely a problem with HTTP MIME headers. Have you tried one of the

* If file is accessible from direct URL (ie yoursite.com/yourmovie.mp4),
check Apache mod_mime or .htaccess for proper mp4 MIME type (which should be
* If file is returned by a servlet (IHttpListener), add Response.ContentType

Your browser correctly handles the MP4 format while the MIME headers are not
sent, it's because all modern browser have a special format detector that
examines the first bytes of a file for possible formats.
In general, this is not related to Mono itself but to your webapp/webserver

Hope to be of help,
Antonio Anzivino

-----Messaggio originale-----
Da: aladinsane [mailto:hvorblevden at gmail.com] 
Inviato: venerdì 27 agosto 2010 11:48
A: mono-aspnet-list at lists.ximian.com
Oggetto: Re: [Mono-aspnet-list] ASP.NET and .mp4 mime type

Noone with the same problem?

I can't find other filetypes with the same problem (flv loads in a
swf-player; avi can run through a plugin; mpg, pdf and mp3 opens directly in
the browsers). 

Only mp4 seems to be the problem. I've tried streaming it to a swf-player,
open it through a plugin and directly, but without any luck.

It's not a mime-problem, since the file is recognized and I can download
them and watch them, but not open them online.

Is this to be considered as a bug in mono? And if so where do I file such a

HELP! Please! 

View this message in context:
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4496 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100903/eef3e0f8/attachment.bin 

More information about the Mono-aspnet-list mailing list