• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Front Page- autoplay wav file on start-up

I am using FrontPage 98.  I want a sound file to play automaticly when the page is accessed.  I can't seem to get it to work.  What should I do??????
0
coffkid
Asked:
coffkid
  • 10
  • 5
1 Solution
 
bigelosCommented:
You need to set it up so that both Netscape and MSIE play the file properly.  Here is the proper HTML:

<bgsound src="sound.mid">
<embed src="sound.mid" autostart="true" loop="true" width="200" height="60" controls="largeconsole" volume="50" hidden="false">

The above HTML should go where you want the control positioned.  Replace sound.mid with the sound file you want to play, be it wav or midi.


0
 
bigelosCommented:
Note that the sound file must be available to the web page, and it must have the permissions set to at least R (read) for everyone.  In the embed code, you need to have autostart="true" if you want it to start automatically.  You don't have to specify the width, height, or the controls if you have it hidden.  Actually, they don't have to be specified at all if you don't want.  The ones above are specific to the Crescendo plug-in.  The volume is in percent, with 100 being the highest level.

There is an example of this at
http://kanga.unixnet.org/~bigelos/temp/MidiPlayer/mime_req.html
Note that the above is an example of a web site that doesn't have the MIME types configured properly, so it won't start playing automatically.  For web sites that don't have MIME configured correctly, you will need a plug-in such as Crescendo.

Just in case you are interested in the Crescendo plug-in, here is the code that works with it:
<OBJECT ID=Crescendo
CLASSID="clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326"
HEIGHT=55
WIDTH=200>
<PARAM NAME="Song" VALUE="sound.mid">
<EMBED TYPE="music/crescendo"
SONG="sound.mid"
PLUGINSPAGE="http://www.liveupdate.com/dl.html"
HEIGHT=55
WIDTH=200>
</OBJECT>

There is an example of this at
http://kanga.unixnet.org/~bigelos/temp/MidiPlayer/1mid.html
0
 
coffkidAuthor Commented:
It didn't work.  I put in the code and I keep getting the same message. "Plugin did not initialize  properly".  I made sure the soundfile is in the web I am creating.  I think and I could be way off base with this.  I don't know that I have told it to look in a specific area for the file.

Any more suggestions?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
bigelosCommented:
You need to download the plugin and install it before it will initialize properly.  The plugin can be found at

http://www.liveupdate.com/dl.html

Note that the first example doesn't require a plugin.
0
 
bigelosCommented:
You need to have the sound file in the same directory as the the HTML file for the above code.  Also, make sure that it has the same permissions as the HTML file.

If you are getting "plugin" errors with the first example, it means that at some point in time you installed some plugin that deals with sound files, and this plugin is now having errors.  To test this, you can do a clean install of your browser in another directory and see if you are still getting those errors, but I wouldn't recommend it if you are not really familiar with your operating system.
0
 
coffkidAuthor Commented:
If you go to "http://www.magicnet.net/~coffkid/kids.htm"  you will see what I am talking about.  I really don't want to d/l a plugin.  I want to set up a page that will play a wav file when ever anyone opens it.  I know the first code you gave should do it but its not.  I was just sent the wav file over to my server along with the html file. and still no luck.
0
 
bigelosCommented:
Right now, your main problem is that you have the code
<base href="http://default">
Remove this code and things should work a little better.

While this might work on your computer, no images show up on mine, because http://default is not a valid address.

In addition, there is a bigger problem than even that: you have /fcc in front of everything that you call, but that directory is not even on your ~coffkid page.  After looking through all your directories (see http://www.magicnet.net/~coffkid/) it appears that none of your images were even uploaded to your server.

Now, you can still see these images on your computer because you have your web server running.  Turn off your web server and you will be getting the same problems that I am.



0
 
bigelosCommented:
Your sound file did make it to your server.  I noticed that it is quite long--109KB.  You should be able to make it smaller by lowering the quality.  As it is, it will take 1 minute or longer to download with a standard 28.8k modem.  You can lower the quality by making it mono, and also by lowering the sample rate to 8kHz.  This will make it a 40kb file.  (Do this in sound recorder in Win95.  Do File-Properties-Convert Now)
0
 
bigelosCommented:
Take a look at http://www.geocities.com/PicketFence/2400/kids.htm

If you are still getting plug-in errors, then you need to re-install Netscape/MSIE, with a possible uninstall before hand.

I tested the above page with Internet Explorer 3.0 and with Netscape 3.03.
0
 
coffkidAuthor Commented:
Adjusted points to 200
0
 
bigelosCommented:
I took a look at your page again and it appears that you still have the code
<base href="http://default">
on the page kids.html, so nothing is coming in correctly, including the wav file.

Did you get the problem solved elsewhere?
0
 
coffkidAuthor Commented:
Well that was just a test page.  but I haven't figured out how to tell FrontPage to take that off.
I wasn't sure if I should manually remove that code.  I got the sound to work from my Front page.  But the Netscape plug-in wont work.

0
 
bigelosCommented:
You'll have to reinstall the Netscape plug-in to get it to work properly.  If you don't know what the plugin was, my advice would be to uninstall netscape and then reinstall it.
0
 
coffkidAuthor Commented:
I think I got it. Please check it out when you get a chance.  
www.magicnet.net/~coffkid/kidspage.htm

Thanks agian for all your help.

0
 
bigelosCommented:
Looks like it is working to me.  BTW, the godmadeu.wav in the 40k version can be found at http://www.geocities.com/PicketFence/2400/godmadeu.wav
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 10
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now