Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Front Page-  autoplay wav file on start-up

Posted on 1998-03-06
15
Medium Priority
?
211 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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 600 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

618 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