Click to See Complete Forum and Search --> : How to play a background sound in all the web browsers?
apple_wp
07-25-2005, 12:16 AM
I am having a problem getting a background sound to play in all the web browsers.
Actually what I would like to do is a sound should be played auotmatically once a web page is loaded without clicking on anything to play the sound. I have used the <BGSOUND> tag and this is only works fine in IE, not for other web browsers. So is there anyway to play a background that will play automatically when a web page is loaded?
Hope someone could give me some idea.
Thanks in advance.
bathurst_guy
07-25-2005, 12:29 AM
As I suggested for another person, I would recommend importing the sound into flash and saving it as a swf. This way you dont have to worry too much about what platform or browser the visitor has, just that they have a sw plugin installed which is common and easy to download if they dont. But I also recommend giving the visitor a choice to stop the sound if they want to, or even better an option before the file even downloads.
apple_wp
07-25-2005, 03:10 AM
As I suggested for another person, I would recommend importing the sound into flash and saving it as a swf. This way you dont have to worry too much about what platform or browser the visitor has, just that they have a sw plugin installed which is common and easy to download if they dont. But I also recommend giving the visitor a choice to stop the sound if they want to, or even better an option before the file even downloads.
What you meant was import only the sound into flash and save it as swf and then play the swf in when the web page is loaded?
bathurst_guy
07-25-2005, 03:14 AM
What I meant was what I said...
I would recommend importing the sound into flash and saving it as a swf.
Hows that different to this:
import only the sound into flash and save it as swf and then play the swf in when the web page is loaded?
swf files will play automatically when loaded unless specified otherwise.
apple_wp
07-25-2005, 03:19 AM
What I meant was what I said...
Hows that different to this:
swf files will play automatically when loaded unless specified otherwise.
Could you give me some idea of how to load a swf file in a web page?
bathurst_guy
07-25-2005, 03:22 AM
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="32" height="32">
<param name="src" value="songfile">
<embed src="songfile" pluginspage="http://www.macromedia.com/shockwave/download/" width="32" height="32"></embed></object>
apple_wp
07-25-2005, 03:25 AM
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="32" height="32">
<param name="src" value="songfile">
<embed src="songfile" pluginspage="http://www.macromedia.com/shockwave/download/" width="32" height="32"></embed></object>
The songfile in the <value> and <embed src> is to replace with my swf file?