Click to See Complete Forum and Search --> : Firefox and mp3 files


AveryBrightman
08-18-2006, 05:00 PM
I'm trying to play an mp3 file using the <object> tag but it won't work when I use the Firefox browers. Nothing shows up. Here's the code, it works just fine under IE.

<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="theNameOfTheFile.mp3" />
</object>

toicontien
08-18-2006, 05:08 PM
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="theNameOfTheFile.mp3" />
</object>
You're specifying an Active-X control, which is only supported by Internet Explorer. You may find this article a good read: http://www.alistapart.com/articles/byebyeembed

goofy1989
08-19-2006, 04:39 PM
You should try using an <embed> instead, that works for me.

AveryBrightman
08-22-2006, 01:52 PM
Thanks for replying, but I guess my noobness doesn't really help me understand the problem. I read the article and I'm thinkin if I use the <object> tag with mp3 files then I'll need the right type attribute right? I let
type="audio/mp3"
and it still works in IE, but not in FireFox.

Something different happens when I use the <embed> tag. I have to get a plugin for the mp3 to run?
Here is my <embed> code:

<embed src="fileName.mp3"></embed>

I think that article recommended NOT using the <embed> tag because it won't be "standard".

So I guess I still need help!