Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Dealing with .m4a files

Dealing with .m4a files
Thread Tools
Grizzled Veteran
Join Date: May 2000
Location: ON, Canada
Status: Offline
Reply With Quote
Apr 13, 2004, 09: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.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Apr 13, 2004, 10: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".
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Grizzled Veteran
Join Date: May 2000
Location: ON, Canada
Status: Offline
Reply With Quote
Apr 13, 2004, 10:32 AM
 
I have a 3rd party web host and I don't have access to their config files. Is there an .htaccess solution?
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Apr 13, 2004, 11:56 AM
 
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
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Grizzled Veteran
Join Date: May 2000
Location: ON, Canada
Status: Offline
Reply With Quote
Apr 13, 2004, 12: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.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Apr 13, 2004, 01:10 PM
 
always a pleasure to help you out, DB
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2