123Webmaster.com : Onsite : Building
Embedding Real Audio On Your Site

by Ian McDonald
http://www.bigresources.com

Preparation:
  • Download Real Producer from www.real.com (3.7m).
  • Record your music from your CD using a sound recorder and save it as a .wav file.
  • Convert your song using real producer from .wav to .rm format.
  • Upload your song to your server.
Embedding it:
Make a file with notepad or a similar text editor. Enter the full url where your .rm file is located and save the file as your-file-name.rpm

The Embedding Code and Console:
Insert this into your page where you want your console.

<!-- --><embed SRC="http://your-url.rpm" type="audio/x-pn-realaudio-plugin" CONTROLS="PlayButton" AUTOSTART="FALSE" LOOP="FALSE" VOLUME=100% WIDTH=40 HEIGHT=13 CONSOLE="MYCONSOLE"><embed SRC="http://your-url.rpm" type="audio/x-pn-realaudio-plugin" CONTROLS="StopButton" AUTOSTART="FALSE" LOOP="FALSE" VOLUME=100% WIDTH=20 HEIGHT=13 CONSOLE="MYCONSOLE"><!-- -->

It will look like this:

To change make it start automatically, change AUTOSTART="FALSE" to AUTOSTART="TRUE" (BOTH TIMES).
To make it repeat, change LOOP="FALSE" to LOOP="TRUE" (BOTH TIMES)

Giving Your Visitors More Options:
You can do this by use of a "Control Panel" that you can embed into your page, it will give options such as, volume, clip info and time line. This only uses one line of code which is:

<!-- --><embed SRC="http://your-url.rpm" type="audio/x-pn-realaudio-plugin" CONTROLS="Control" AUTOSTART="FALSE" LOOP="FALSE" VOLUME=100% WIDTH=400 HEIGHT=100 CONSOLE="MYCONSOLE"><!-- -->

It will look like this:

Activating Your Song From a Link:
Make a file with notepad or a similar text editor. Enter the full url where your .rm file is located and save the file as your-file-name.ram

Then just make a link as normal to your .ram file. My Song.

Playing More Than One Song:
Just add the urls of your songs one below the other in your .ram or .rpm file.

And thats it. Good luck.


Discussion - Graphics & Multimedia