3

http://fowlertown.com/projects/terry/widgets/audio.html

Or if you don't want to click the link, here is the code that matters:

<audio type="audio/mpeg; codecs='mp3'" controls src="sample.mp3">Your browser does not support the HTML5 &lt;audio&gt; element.</audio>

This isn't showing up in Firefox 15.0.1 and 16.0.1 on Mac OS X 10.7.4 which depresses me because this is crazy simple HTML5 code. It pops up for a fleeting moment on load but then disappears. It doesn't even show the fallback text.

Thoughts? Is it working for Windows users?

edit: http://html5doctor.com/html5-audio-the-state-of-play/ is where I got my browser support list, which indicates FF has supported the audio element (MP3 codec) since version 3.6.

Daniel Fowler
  • 385
  • 7
  • 21

1 Answers1

2

You have to use this tag differently as in firefox you can't play MP3 files with such a code. Here is the link for your help. http://support.mozilla.org/en-US/questions/758978

Firefox doesn't support mp3. See this http://www.codingforums.com/showthread.php?t=231069

MJQ
  • 1,778
  • 6
  • 34
  • 60
  • Here is another related question, http://stackoverflow.com/questions/4923136/why-doesnt-firefox-support-mp3-file-format-in-audio – MJQ Oct 17 '12 at 14:55
  • 1
    Thanks - I guess the article I read was just wrong. Per the idea that FF still doesn't support MP3, I went out seeking an OGG converter. Code only gets slightly more complex, and now I have to maintain two files, but whatever... it works. Thanks. – Daniel Fowler Oct 17 '12 at 15:17