EMBED
.MP3 EXAMPLE
(Audio
wave File - compressed)
| MP3 files are normally created
from an uncompressed .WAV file. A normal CD quality .WAV file can be huge
and not suitable for use on the web. In this example a 35 MB song has been
compressed to 2.8 MB. Right-click on the console in a blank spot.
Select 'Properties' and you will see the type of compression that was used
to create the file.
Following is the script used to play the MP3. It must be placed on the page at the location you want it to appear. Notice that "playMedia" includes not only the file name and extension, but is preceded by the location of the file. Of interest is the height of 50 and width of 300. Our Code Generator automatically determines from this size that you want a Status bar included. Purpose is to display the information entered in the file during encoding. Watch, as various details are displayed. |
| <script language="JavaScript" src="wmpCodeGen.js"></script>
<script language="JavaScript" type="text/javascript"> playMedia("media/TimeAfterTime.mp3",1,50,300) </script> |
| Please click the 'Back' button below to view other examples. |