View Full Version : Not able to embed music
jerrysp
12-30-2008, 05:35 AM
The HTML embedding code given in the Tizag tutorial does not work for me. I want to embed music (mp3) in my website. I just get a red x in an empty triangle when using the given code. I use the Vista OS which is not excluded by Tizag.
ie)
<EMBED SRC="song.mp3" HEIGHT=100 WIDTH=300 autostart="false" loop="false">
Any help?
abduraooft
12-30-2008, 08:33 AM
Read the article www.alistapart.com/articles/byebyeembed/
btw, I'd recommend JW FLV Media Player (http://www.longtailvideo.com/players/jw-flv-player/)
jerrysp
01-03-2009, 04:54 AM
Thanks for your suggestions.
I can not believe the powers that mastermind the modern HTML coding would disregard the simple code shown above and favor such a complex set of coding to achieve the same outcome.
VIPStephan
01-03-2009, 03:32 PM
Thanks for your suggestions.
I can not believe the powers that mastermind the modern HTML coding would disregard the simple code shown above and favor such a complex set of coding to achieve the same outcome.
You know, if it would be that simple, the embed element would probably not have been replaced (or it would actually have been declared as officially valid HTML – which it never was so its use is kinda “wrong” anyway).
The guys that invented and continuously develop HTML have to bother about more kinds of file types than just MP3. There are many video and audio formats with different requirements if they are included in an HTML document, and the concensus was that the object element is the appropriate all-purpose element for such external content. There you can specify many different file formats (video, audio, images, even HTML or text files) to be included in a document, and you can assign multiple standard or custom parameters to these files in order to perform a specific task.
This may be a little more complicated for the average developer but it will be much more reusable and easier in the long run.
jerrysp
01-06-2009, 04:03 AM
Video and images are no problem. In the past mp3, wav and midi worked fine. Now it is too complicated for me - nothing works. Vista makes it even worse.
Thanks for your help.
_Aerospace_Eng_
01-07-2009, 12:07 AM
In XHTML 2.0 the image tag won't exist. You'll have to use an object tag but support in IE is a bit buggy right now so you'll have to use XLS transformations. http://code.jenseng.com/object/objectifier.html
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.