Forum Moderators: open

Message Too Old, No Replies

adding mp3 in XHTML

         

sabine

2:22 am on Jun 5, 2005 (gmt 0)

10+ Year Member



Could anyone point me to a source, where I can get information how to implement a mp3 file in a XHTML page, which will work cross-browser? I know about the object tag in combination with the embed. What I am missing are the value's for the classid pluginspace etc and other neccessary attributes to get it working.

I did search the net, but the information I found did not work or was too fragmented.

thanks in advance Sabine

encyclo

7:10 pm on Jun 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is no reliable way of doing this without using the object/embed tag combination. As you have noticed, this won't validate because
embed
and various attributes are not part of any official specification. You can use Javascript to write out the markup, but you would only be fooling the validator into not parsing the invalid markup - it is just hiding the problem, not solving it.

So the stark choice is between having a page which validates or a page which works cross-browser. I would strongly recommend putting your users first and putting up with the very minor validation problem.

coopfreak

3:11 am on Jun 6, 2005 (gmt 0)

10+ Year Member



I am also having problems with this... sorry I'm of no help. Hoping to get an answer...

keyplyr

7:55 am on Jun 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Look up wimpyplayer. Think they offer a utility that'll work since it can be loaded in a child window (pop-up.)

coopfreak

3:10 pm on Jun 9, 2005 (gmt 0)

10+ Year Member



anything that doesn't cost?

coopersita

5:29 pm on Jun 9, 2005 (gmt 0)

10+ Year Member



You can use the following method:
[realdev1.realise.com...]

It embeds quicktime movies with valid xhtml.

You only need to change the classid and the mime type to match mp3.