PDA

View Full Version : MP4 and MP3 playback problems in IE and Safari




Dziner
Aug 5, 2004, 11:10 AM
I recenty designed a site for a client that requires playback of MP3 and Mp4 audio samples. Playback becomes encrypted in IE and Safari. It only seems to be a problem on Mac. I am able to play mp3's and 4's on other sites with IE and Safari, so I am completely stumped. If anyone has an idea, please advise.
The site is: http://www.manciniproductions.com navigate to "TV & Radio" and select tracks from the Audio Reel.



Knox
Aug 5, 2004, 12:13 PM
This usually happens when the web server doesn't know what content type a .mp4 or mp3 file is and so gives the generic one of text/plain. When the browsers see text/plain they don't download it but display the "text", which in reality is just all the garbage you see. I just checked and it appears that this is happening in this case.

To fix that you need to tell Apache what MIME content type to send for the files. Create a .htaccess file in the root directory of the website with the following in it

AddType audio/mpeg mp3
AddType audio/mp4 mp4

It's possible that your web host may not let you add types in this way, in which case you'll have to contact them.

Dziner
Aug 5, 2004, 12:35 PM
Thanks. I tried it and it didn't work. I guess I'll have to contact the web host.
:(