Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

 
 
Thread Tools Search this Thread Display Modes
Old Jan 18, 2005, 01:27 PM   #1
mcgarry
macrumors 6502a
 
mcgarry's Avatar
 
Join Date: Oct 2004
playing m4a in browser

Hi,
Thanks to some help from here a few weeks ago, I got my sites up and running out of my house. One of them is for my brother, who wanted me to put up some of his self-recorded songs. On the downloads page of that site,

www.the-optimist.com/music.html

the mp3 links work fine in every browser, but the one test m4a link I put up returns text output only in Safari (Firefox brings a dialog up and I have not yet tested IE).

I did create a .htaccess file in the-optimist.com's document root, which includes the text

AddType audio/mpeg mp3
AddType audio/mp4 m4a

What am I missing ? (yeah, besides the ability to design a website that doesn't look like crap -- I learned enough html to do the basics back in 1996 and I've never moved beyond)

Last edited by mcgarry; Jan 18, 2005 at 01:34 PM.
mcgarry is offline   0
Old Jan 18, 2005, 03:40 PM   #2
ChicoWeb
macrumors 65816
 
ChicoWeb's Avatar
 
Join Date: Aug 2004
Location: California
Could be your host. Some of them don't allow you to write your own MIME types. I had a issue like this with a client and his server. I had to end up hosting the files myself.
__________________
ChicoWeb is offline   0
Old Jan 18, 2005, 03:58 PM   #3
mcgarry
Thread Starter
macrumors 6502a
 
mcgarry's Avatar
 
Join Date: Oct 2004
Quote:
Originally Posted by ChicoWeb
Could be your host. Some of them don't allow you to write your own MIME types. I had a issue like this with a client and his server. I had to end up hosting the files myself.
I host myself-- an old iMac by my desk running 10.2.8 (Apache 1.3.33).
mcgarry is offline   0
Old Jan 18, 2005, 05:09 PM   #4
ChicoWeb
macrumors 65816
 
ChicoWeb's Avatar
 
Join Date: Aug 2004
Location: California
Then I would imagine you njeed to add this MIME type under httpd.conf file.

Search for:

Code:
 AddType application/x-tar .tgz'.
and after it place:

Code:
AddType audio.mp4 .mp4 .m4a .m4p
__________________
ChicoWeb is offline   0
Old Jan 18, 2005, 05:44 PM   #5
mcgarry
Thread Starter
macrumors 6502a
 
mcgarry's Avatar
 
Join Date: Oct 2004
Thanks! that worked. Firefox opens up a player in the browser (right-click will download), and Safari begins a download; either is fine with me. I'll test on a Windows machine when I get a chance, but really I thought this would just be a nice touch for Mac or iTunes users.

Do I still need the .htaccess file I made?

Lastly, a note on nomencalture:what is the proper usage of m4a vs. mp4, at least in my application?
mcgarry is offline   0
Old Jan 18, 2005, 06:02 PM   #6
crazzyeddie
macrumors 68030
 
crazzyeddie's Avatar
 
Join Date: Dec 2002
Location: Florida, USA
m4a is mpeg4 audio (what you want to distribute). mp4 is mpeg4 protected, aka iTMS protected music, which is useless to distribute.
__________________
Macbook Air 2010
Core 2 Duo 2.13Ghz
4GB DDR3 RAM
iPhone 5 Black

Last edited by crazzyeddie; Jan 18, 2005 at 06:04 PM.
crazzyeddie is offline   0
Old Jan 18, 2005, 06:03 PM   #7
mcgarry
Thread Starter
macrumors 6502a
 
mcgarry's Avatar
 
Join Date: Oct 2004
Quote:
Originally Posted by crazzyeddie
m4a is mpeg4 audio, mp4 is mpeg4 protected, aka iTMS protected music.
Thanks, I have not yet purchased anything from iTMS. Do purchased files use the .mp4 suffix, while the files I import into iTunes (as from my brother's CD) get .m4a?
mcgarry is offline   0
Old Jan 18, 2005, 06:05 PM   #8
crazzyeddie
macrumors 68030
 
crazzyeddie's Avatar
 
Join Date: Dec 2002
Location: Florida, USA
Quote:
Originally Posted by mcgarry
Thanks, I have not yet purchased anything from iTMS. Do purchased files use the .mp4 suffix, while the files I import into iTunes (as from my brother's CD) get .m4a?
Yes, exactly.
__________________
Macbook Air 2010
Core 2 Duo 2.13Ghz
4GB DDR3 RAM
iPhone 5 Black
crazzyeddie is offline   0
Old Jan 18, 2005, 07:43 PM   #9
Brize
macrumors 6502a
 
Brize's Avatar
 
Join Date: Jun 2004
Location: Europe
Quote:
Originally Posted by crazzyeddie
m4a is mpeg4 audio (what you want to distribute). mp4 is mpeg4 protected, aka iTMS protected music, which is useless to distribute.
I'm unsure about this. I thought that protected AAC files had the m4p extension, rather than mp4.
Brize is offline   0
Old Jan 18, 2005, 09:07 PM   #10
rendezvouscp
macrumors 68000
 
Join Date: Aug 2003
Location: Long Beach, California
Send a message via AIM to rendezvouscp
Brize is correct. Protected AAC (MP4) files are .m4p and unprotected are .m4a, while audiobooks are .m4b. They are all MP4 files.
-Chase
__________________
Santa Rosa 2.4 15" Matte MacBook Pro
Iron Money
rendezvouscp is offline   0
Old Jan 18, 2005, 09:27 PM   #11
crazzyeddie
macrumors 68030
 
crazzyeddie's Avatar
 
Join Date: Dec 2002
Location: Florida, USA
m4p... mp4... You know what i mean
__________________
Macbook Air 2010
Core 2 Duo 2.13Ghz
4GB DDR3 RAM
iPhone 5 Black
crazzyeddie is offline   0

 
MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Open media links in browser w/ Quicktime, not VLC PkennethV Mac Basics and Help 0 Aug 1, 2011 11:15 PM
dvd-r playing m4a on regular cd player? dylanmoro Digital Audio 2 Jul 26, 2010 07:49 AM
LG Rumor Touch will not play m4a AppleSeeds2009 Digital Audio 0 Jul 5, 2010 01:14 PM
AVI files in browsers don't play (QT logo with question mark) jollino Mac Applications and Mac App Store 2 Nov 20, 2006 09:24 AM
Can any one play this in a browser? opusthe2nd Mac Applications and Mac App Store 26 Oct 27, 2005 08:11 PM


All times are GMT -5. The time now is 04:46 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC