Since the summer of 2000 upgrade the loop attribute of true or infinite does not play the music continuously regardless if you use <embed src="blah_blah"> or <bgsound src="blah_blah"> in e-mail or a web page but if you use loop="5" the music will play 5 times which should suffice for the time being. I have tried and tested that loop="-1" (that's minus one) will play the music continuously for WebTV only but not for computers. I think loop="n" where n is a number works best such as loop="9" as there are some extensions such as .mod that will not play continuously using loop="-1". If you are listening to music from an e-mail or web page tap your Info key and you'll see the word audio and the URL of the music that is playing. If you're listening to real audio you'll also see the word codec, which is a COder DECoder, and Real Audio with either 3.0, 4.0 or or 5.0 displayed and G2.
Background Sounds In E-mail, Web Page and PageBuilder
Search Engines, Linkng Sites, Music Library
WAV & Real Audio [all gone] Sites
Windows Media Player
Linkable Random Midi Player
This is probably the most comprehensive tutorial you'll find on playing music in either your e-mail signature box or on your web pages at least that was my intent when I first made this page. I did not invent these commands nor am I the first to publish a tutorial on this subject. A few tags are typed in uppercase for easier reading but in fact should be used in the lowercase in all cases as the HTML standards set forth by the W3C Consortium will eventually require that all commands be written in the lowercase with the use of quotation marks with any and all attributes. (read this) What I have done is take a little from here and a little from there and compiled all of the information on this page. It's sort of like writing a book report based on facts. Well here are the fact madame just like Sgt. Joe Friday said on Dragnet.
These codes may be used whether you want to hear music in your e-mail or on a web page. The commands are for all browsers. Which particular browser will be explained further in this tutorial. The use of real audio, RAM, should not be used in e-mail but if one desires playing real audio on a web page that is naturally your choice. If I hear real audio I immediately tap Cmd + W, PIP, to override the streaming audio. Depending upon your upgrade you can also tap on pause or stop to stop the RA from playing. Remember that the music you play is basically for your entertainent not the viewers. The commands are the same regardless if you play a midi, au, wav, ra, zip, aff, mod or whatever the extension of the music is.
This command will put a simple on/off icon on your web page which the viewer can click on and hear music at their discretion although computers will see this differently.
The above on/off icon will play Smooth in the midi version by Carlos Santana. I used a relative URL for the icon like this:
and the below icon will play the same song in real audio.
This command <object data="music_URL_here"></object> (notice the tag close)
In some applications (syntax protocol) the
use of width="1" height="1" might be required. A case in point would be playing two sounds in e-mail which requires the use of a file server and the transloading of music.(2 sounds in e-mail has been nuked by WebTV again.) See below for the two sounds page.
While listening to Carlos Santana playing Smooth tap your Options key and you'll notice a few extra controls. There is a timer, pause, stop, rewind (start over) clickable and a small audioscope for you to play with. These controls will be usable any time you click on an audio file. You can stop the music after clicking on the above speaker icon. When you hear music playing in e-mail or a web page tap the Info key and you'll notice the URL of the music that is playing.(upgrade of May 2000 If you listen to RA (real audio) you wll also notice the codec (COde DECoder) of the RA.
Midi files may not sound the greatest but because of there economical file size midi files are becoming very popular as background sounds. Below is the HTML code for the Navigator browser. BTW the use of upper or lower case does not make any difference (although in the very near future it will) with the lone exception of any and all URL's which are case sensitive. I used the upper case just for the commands to stand out. For future HTML standards click here.
<embed src="URL_of_music_here" autostart="true" loop="3" hidden="true">
With the Navigator browser if you want to give users a stop/start control set the hidden= argument to false and insert the height & width for the control just as you would for an image.
<EMBED SRC="URL_of_music_here" autostart="TRUE" LOOP="3" HIDDEN="FALSE" HEIGHT="74" WIDTH="144">
If you set the height & width any smaller you will cut some off the image for the controls. Background music or sound make for a great multimedia experience on the internet, but be courtesy and give your visitors a choice. Do not set background music or sound to auto play, let the visitor decide if he or she wants to hear it. Always show the stop & play controls. Make sure the controls are clearly visible. The above commands are for a web page or e-mail if so desired to display a music control panel for computer. The agrument HIDDEN has two attributes FALSE and TRUE. FALSE will display the control panel and TRUE will not and the music will play automatically. In the command <bgsound> the attribute autostart is not necessary as the command is already an autostart command. Using <embed src="...">(source) autostart is necessry. The loop attribute maybe either "-1" [minus 1] or a number which will dictate how many times the song will play. Example LOOP="3" meaning the song will play three (3) times although the -1 is a WebTV only attribute.
So if you want all browsers to hear your music with no controls for a computer use this:
<BGSOUND SRC="URL_of_music_here" LOOP="3">
<EMBED SRC="URL_of_music_here" autostart="true" loop="3">
The command string I like the best is and works perfectly in all of my slide shows which is seen and heard by many different computer browsers.
<bgsound src="sound URL here" loop="3">
<embed src="sound URL here" autostart="true" hidden="true" volume="100%" loop="3">
The above does work for most ALL browsers and always use a relative URL on a web page for the sound.
This will play the same song three (3) times. If you wish for the music to play over and over use LOOP="50" in both commands. These commands should be used on a web page. Now if you wish a music control panel to appear for the computer viewers then simply add ---- HIDDEN="FALSE" WIDTH="144" HEIGHT="74" or the whole thing looks like this.
<BGSOUND SRC="URL_of_music_here" LOOP="3">
<EMBED SRC="URL_of_music_here" LOOP="3" HIDDEN="FALSE" WIDTH="144" HEIGHT="74">
but with the plug ins used by computers today the standard bgsound and embed commands will automatically play the sound without using the hidden="false" width and height attributes.
In the below textarea box are the music commands that I use on my military web site which is viewed by computers and they heard the sound quite well. If you look closely you'll notice that I use relative URL's after the bgsound src="...." and embed src="...." commands. This command is case sensitive and should be cc&p'ed exactly as is which also includes the spacing. The below commands work best when placed after the body commands. As of 5-24-2004 I changed sound syntax as I do quite often)
Now for just plain old music playing in your e-mail all you really have to do is this:
<BGSOUND SRC="URL_of_music_here" LOOP="3">
or you may use this:
<EMBED SRC="URL_of_music_here" autostart="true" loop="3">
and either one of the above will play your music.
There are different schools of thought of where these commands should be placed in your command string. I like to place the commands after my body commands where the music starts loading ASAP and the rest of the codes will still continue to load. Some programmers are under the impression that the music commands should go at the end prior to </body> and </html> thinking that the music prohibits the loading of the rest of the page. I have never found anything to substantiate either theory. If any one has a site to to explain this please give me a holler. I have seen pages where the commands are at the bottom and the music is already playing while the rest of the page is still loading. So based on that why not put the music at the beginning?
Now some might be asking themselves where and what do I do with these commands? If you click on Mail then click on Settings and then click on Signature and there's the signature box aka sig. The cursor should be flashing in the upper left hand corner [tap the Delete key a couple of times to verify the cursor is in the correct starting place] and type <html> then type <body bgcolor="you_pick_a_color" text="you_pick_a_color"> now add your music commands, then the rest of your commands would go after that. Then always close with </body> and </html> last. Each of the forementioned codes are only used once. Now tap your Tab key and click Done. The Tab key will take you out of most textarea's. Then click another Done. Now send yourself a message after reloading your message page, reloading works like this. While holding the Cmd key down and tapping the letter R about 5 or more times reloads any page or simply hold the the R key for say 5 seconds which does the same thing. Look over your just sent message and listen to your music which you should have heard prior to sending yourself the message. If you run into a problem please feel free to send me a message and I'll do my best to assist you as needed.
If you need the URL, Uniform Resource Locator, of any audio file here is the way. When the music is playing tap your Go To key and then click on Show Last and this will put the URL in the window. Then hold down the Cmd key and tap the letter A, this is called Copy and while the Cmd key is still down tap the letter C, this is called Cut and you should hear a small click indicating that you have stored the information. Then go to where you want the music to play either your signature box or Web page and when you're ready to add the URL to one of the music commands you are using hold down the Cmd key and tap the letter V, this is called paste. This is to ensure that you have the exact URL without a typo and it is alot easier than writing the silly thing down If there's information in your Go To window just hold down the Cmd key and tap the Delete key and that will delete the contents of the window.
There are some file servers that do not allow linking [Tripod and GeoCities are two]. Therefore the music has to be embedded in your signature box. This means that all of your signature box programming has to programmed at your file server and that URL has to be embedded such as:
<body bgcolor="black" text="white">
Then all of your commands are programmed at the file server and it goes without saying that all music and images have to be transloaded. Now if you do not want to do this and you find music from say Tripod and GeoCities who do not allow linking here are a few sites that do allow linking followed by some music search engines. If there are other sites that allow linking then just send me an e-mail and I'll be happy to add your site to the below.
If you click here you'll read about copyright laws for midi files and the internet. If you make your own 30 seconds wav's and need to snag a URL then this site is the one to use. Here's
another method for getting URL's from WebTV audio clips and other wav
Volume Control by tyhart
The below will show how you may control the volume of an autostarted sound file. The volume is set at -50 but the higher the number the louder the initial volume. So -10 or +20 will have a higher volume.
Here are some new sound sites that were sent to me by Pete aka KnoxRox. Thanks Pete and BTW with these files play best if you use loop="5" or higher.
If you want to add music to your PageBuilder site follow these steps:
Click on "Create"
Click on a page style (same as your web site page style)
Click on "Add An Item"
Type in your HTML sound code although it's better to use CC&P because the URL has to exact.
<bgsound src="Music_URL_here" loop="3">
Title The Page.
Go to your web page and first reload the page and you should hear your bgsound music. There is a way to store music files and link music to PageBulder by using Beth Candy's PageBuilder Sound File Storage. Now PageBuilders have a place to store wavs and midis. Beth has left WebTV so if anyone knows how PB folks can do the above then please send me an e-mail. It will look like this:
This service is for all PageBuilders, one per user name.
Now if you want to get real fancy and want two sounds or more playing on your web page click here. I have seen scripts in news group for multiple sounds but I have not tested those commands. So I can not endorse them at this time although I do not doubt that they do in fact work. I try to test any and all commands prior to my publishing any and all commands. If you click here you'll find a script by Jerry Hollingshead for multiple sounds on a web page. I found a couple sites than have RMP's, random midi player, that will work in a signature box here.
This page by tyhart will explain multiple midis as well and for continuous sound from one page to another read this article and or validate this page.
Real audio can not be transloaded in the true sense and will not play (loop) continuously but you can do this: transload the RA file, you'll still be using the bandwidth from the owner of the file, and then rename the file with a html extension and edit the file and you'll see something like this:
at least it will begin with pnm:// and copy the above and paste as many times as you want the RA sound to play and save. Then rename the extension back to a ram extension. Then use <bgsound src="RA_file_here"> Remember RA files should not be played in e-mail but only on a web page at this time.
The below tip came from Jerry Hollingshead aka jerry11. You should time the RAM in seconds and multiply by 1000 or add three zeros. In the below example is 220000 which is 220 seconds. The sound will loop continously.