PDA

View Full Version : Dealing with .m4a files


darcybaston
Apr 13, 2004, 10:43 AM
Know how when you click on a link pointing to an mp3 file, the quicktime plugin kicks in and displays the controller in the middle of a blank page? How do I get this behavior for an .m4a file? My web server just dumps the raw source as ascii.

Arkham_c
Apr 13, 2004, 11:01 AM
Originally posted by darcybaston:
Know how when you click on a link pointing to an mp3 file, the quicktime plugin kicks in and displays the controller in the middle of a blank page? How do I get this behavior for an .m4a file? My web server just dumps the raw source as ascii.

You need to add the extension to your mime types file on the server, and the browser needs to know what to do with that mime type.

The server file on OSX is /etc/httpd/mime.types

You'll probably (just guessing) want to add the .m4a extension to "audio/mpeg".

darcybaston
Apr 13, 2004, 11:32 AM
I have a 3rd party web host and I don't have access to their config files. Is there an .htaccess solution?

philzilla
Apr 13, 2004, 12:56 PM
Originally posted by darcybaston:
I have a 3rd party web host and I don't have access to their config files. Is there an .htaccess solution? have you tried just adding something like this in your .htaccess file?

AddType audio/mpeg .m4a

untested, but might be worth a try. report back, please :)

darcybaston
Apr 13, 2004, 01:43 PM
philzilla...you are ALWAYS my savior. Every single time. You should write books. Oh wait, you HAVE. ;)

Thanks man. You're golden. It worked perfectly.

philzilla
Apr 13, 2004, 02:10 PM
always a pleasure to help you out, DB