Solved

Front Page-  autoplay wav file on start-up

Posted on 1998-03-06
15
162 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
  • 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Joomla Website Malfunction 9 52
Asp/Net Validation date Issue 9 38
WEB Farm 6 25
(URGENT) Help HTML and CSS Resizing Images 2 20
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Read about why website design really matters in today's demanding market.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now