Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't I embed sound?

Status
Not open for further replies.

TheDust

Programmer
Aug 12, 2002
217
US
I am trying to embed sound into my page and it won't play. When I include a path to a file that doesn't exist, it gives me an error. With a correct path, however, it just does nothing at all. No console gets displayed if I specify that hidden="false". Check it out:

Code:
<embed id=&quot;bgmusic&quot; src=&quot;music/1.wav&quot; autostart=&quot;true&quot; loop=&quot;true&quot; hidden=&quot;false&quot; width=&quot;2&quot; height=&quot;0&quot;></embed>
<noembed><bgsound src=&quot;music/1.wav&quot; loop=&quot;-1&quot;></noembed>

Making the src path an absolute path doesn't work either. I'm thinking this is a problem with my web hosting. Is it and if so, what should I ask them to do to fix this?
 
It's not a problem with my web hosting, because I have discovered I couldn't play ANY embedded WAV files ANYWHERE!!!

Turns out you have to have WAV files open in Windows Media Player by default or it doesn't work. That is in a word weak.
 
on what all browsers does it give an error?

Known is handfull, Unknown is worldfull
 
Are yuo testing the page with ADSL-connection. In that case try the code without autostart. Add the plugin type to your code. In that case it is type=&quot;sound/wave&quot;. Please correct me if i am badly wrong!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top