Animated Ball UMUC Logo
http://polaris.umuc.edu/~flazarus/

Examples-Enbedding Sound

Use 'View' to inspect the code used to achieve these effects. You may need to experiment a bit. The various browsers handle embeded sounds differently.

Lighthouse Your browser does not support embedded WAV files.

Here use is made of the <embed> </embed> tag set to play a foghorn .wav file.

(red 3D triangle)

Below the same .wav file is called using our familiar <a href=" sound file "> tag. Note that in this case a version of the player console pops up.

Play Foghorn
It may take a few moments for the file and player to load.

(A red 3D triangle)

Then there is the CSS <object> tag which is used below.

Your browser does not support embedded WAV files.

(A red 3D triangle)

There also is JavaScript ...

(A red 3D triangle)

And finally streaming media ...

First you need a real media text file (foghorn.ram in this case) that lists the location (URLs) of the files to be streamed. Any number of sound files can be listed in this .ram file. I've included two. Then you just need call the .ram file. Of course you do need to create/encode the sound files. I used the free version of Real Producer from the RealMedia site.

Play 'em Sam

A source of information on this process can be found at: Real Media's Development Zone

Most late version browsers include an audio player plug-in. You can also download players from sites such as RealAudio and QuickTime.

See the text (Niederst) for more information on embedding audio in a HTML file. Note also that with all the variations embedding sound is not an easy task. Universal standards are yet to evolve.

Return to Index