View Full Version : Firefox problem with script

06-23-2012, 05:00 AM

I have a script from dynamicdrive on this site and the people there are working on fixing some issues.
I can't seem to figure out why Firefox 9 or even the new version 13, refuses to load the mp3's.
IE, Opera, and Seamonkey have no problems. It is only with firefox.

If someone here can shed some light on the issue I'd greatly appreciate it.

It does not appear to be a caching issue. I have closed the window, cleared the cache and still I get nothing.

06-23-2012, 05:53 AM
I don't know about for flash players but I know that with html5 audio firefox cannot play mp3's - something about a licensing restriction (firefox can't afford/ refuses to pay whoever) that I assume goes for swf as well

the html5 workaround is to have an .ogg or .wav file of the same track to use in case the mp3 doesn't load - FF has no problems with those

06-23-2012, 06:14 AM
Oh so that's the problem?
So now I have to a specific page for firefox users?
I'm using the wordpress standalone flash audio player.

AudioPlayer.embed("audioplayer_1", {soundFile: "http://eample.com/Artist - Title.mp3"})

That's the basic code for the actual way wordpress does it.
So how would I address the problem using ogg instead?

A license for mp3? Sheesh. Mp3 is public domain.

Not to mention having to duplicate the files just to please FF.

06-23-2012, 06:30 AM
I don't know anything about that player (maybe check the docs or ask on the flash branch), but I am sure there is a backup that you can do that will not involve duplicate pages. Fwiw, flash is not in my opinion such a great option as there are plenty of people who do not have it installed or block its operation, which is why using the browser to play audio makes sense, and having flash as a fallback if the browser is so old that it doesn't do html5. This is what that would look like:

<audio controls preload="auto" autobuffer>
<source src="elvis.mp3" />
<source src="elvis.ogg" />
<!-- now include flash fall back -->

from what I understand, the mp3 compression algorithm is actually patented, so FF had to pay to incorporate mp3 capability into their browser, whereas .ogg is completely patent-free

06-23-2012, 06:52 AM
yeah and all I ever get is a shadowed container box with a big X.

06-23-2012, 02:28 PM
A license for mp3? Sheesh. Mp3 is public domain.

Just because something is widely in use doesn't make it public domain there's a whole bunch of patents regarding MP3 decoding, and although there shouldn't be any MP3 licensing fees for open source software, Firefox has been reluctant to implement anything potentially encumbered by patents.

Since you're using a Flash player, this shouldn't be the problem, though. I just tried the first MP3 on your site in a few browsers, including Firefox, and it behaved the same everywhere it never got beyond the buffering stage.