[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
following?

* 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
video/mp4)
* If file is returned by a servlet (IHttpListener), add Response.ContentType
="video/mp4"

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
configuration.

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
bug?

HELP! Please! 

/jonatan
--
View this message in context:
http://mono.1490590.n4.nabble.com/ASP-NET-and-mp4-mime-type-tp2277394p234083
9.html
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