Solved

Front Page-  autoplay wav file on start-up

Posted on 1998-03-06
15
191 Views
Last Modified: 2013-12-25
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
Comment
Question by:coffkid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 5
15 Comments
 
LVL 3

Expert Comment

by:bigelos
ID: 1857907
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857908
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
 

Author Comment

by:coffkid
ID: 1857909
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
Industry Leaders: 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!

 
LVL 3

Expert Comment

by:bigelos
ID: 1857910
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857911
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
 

Author Comment

by:coffkid
ID: 1857912
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
 
LVL 3

Accepted Solution

by:
bigelos earned 200 total points
ID: 1857913
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857914
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857915
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
 

Author Comment

by:coffkid
ID: 1857916
Adjusted points to 200
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1857917
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
 

Author Comment

by:coffkid
ID: 1857918
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857919
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
 

Author Comment

by:coffkid
ID: 1857920
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
 
LVL 3

Expert Comment

by:bigelos
ID: 1857921
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to count occurrences of each item in an array.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question