This chapter gives step-by-step instructions on getting RealServer started and running quickly.
In this chapter, you'll walk through simple steps for:
Instructions in this chapter assume that you have already installed RealServer. You'll also need the items below, though they can be located on a different computer than RealServer:
For playing sample clips, you'll need a second computer with RealPlayer installed, and multimedia equipment.
RealProducer Plus and RealPlayer are included with some RealServer packages, and are available in free download versions from the RealNetworks Web site at http://www.realnetworks.com.
Common methods for starting RealServer are listed below. There are also other options for startup, and more details, described in Chapter 6, "Starting and Stopping RealServer". If your RealServer does not start, consult Chapter 21, "Troubleshooting".
On the Start menu, click Programs>Real>RealServer. This starts the rmserver.exe program.
A command window appears, and shows the files loaded. It then displays process ID (PID) numbers. You can leave this window on-screen, or minimize it.
When you install RealServer on Windows NT, by default it installs itself as a service, and runs automatically. If it isn't running, start it with the Windows 95/98 instructions above.
Move to the main RealServer directory and type the following:
Bin/rmserver rmserver.cfg
RealSystem Administrator is the Web-based system you'll use to manage your RealServer. From RealSystem Administrator, you can customize your RealServer, play sample clips, and monitor activity.
|
|
Note |
|---|
| After you install RealServer, RealSystem Administrator automatically appears. If RealSystem Administrator is currently running, you can skip this section. |
If RealSystem Administrator does not start, consult Chapter 21, "Troubleshooting".
address and AdminPort:
http://address:AdminPort/admin/index.html
The setup program generates a random value for AdminPort if you did not supply one. If you're not sure what number to use, refer to "How do I figure out which port number to use for RealSystem Administrator?".
If you don't remember your user name or password, consult "How do I look up my user name and password?".
In the left-hand frame of RealSystem Administrator, click Samples. A new frame appears on the right, with links to sample clips. Click any one of these to test your RealServer. (The computer you're using needs a sound card and speakers so that you can hear the audio portion of the clips.)
If the clip plays correctly, you're ready to begin streaming! If you encounter any difficulties, consult Chapter 21, "Troubleshooting".
You can also play any sample clip by typing its address in RealPlayer. Start RealPlayer and choose File>Open Location.
rtsp://address:554/g2audio.rm
rtsp://address:554/g2video.rm
rtsp://address:554/houseg2/house.smi
rtsp://address:554/debreuilg2/debreuil.smi
where address is your computer's IP address or DNS name. Click OK, and the presentation plays.
As you will see later in this chapter, the format for URLs you type in RealPlayer is slightly different than the format used in the HTML code of Web pages. Examples of both formats are given in each chapter.
This section describes how to create a very simple music file and then stream it from your RealServer. You'll need a music CD, and RealProducer Plus G2 version 6.1. Other versions of RealProducer Plus may have slightly different steps than the ones shown below; if you have a different software version, use these steps as a guide.
In this example, you'll encode your music CD directly to a file, and then move it to a location from which RealServer can stream it. There are many ways you can optimize the encoding to make the best possible listening experience, but these instructions are brief so that you can hear results quickly.
|
|
Additional Information |
|---|
| To learn more about options for encoding, refer to RealProducer Plus User's Guide, available at http://service.real.com/help/library/index.html |
ondemand.rm. (Always use the .rm extension.)
The New Session dialog box closes, returning to the RealProducer Plus main window.
A message appears, asking if you want to add clip information.
RealProducer Plus begins recording your music CD. The word "Encoding" appears in the lower left corner.
RealProducer Plus halts the recording and creates a file named ondemand.rm in the RealProducer Plus directory, or in the directory location you specified in Step 7.
Copy the file ondemand.rm clip you created in the previous section, which is currently located in the main RealProducer directory, to the RealServer Content directory.
In Windows 95, Windows 98, and Windows NT, the path is C:\Program Files\Real\RealServer\Content.
In UNIX, the path is /usr/local/RealServer/Content.
Create a link for the clip in a Web page. (The Web page can be local; it does not have to be on a remote Web server.)
In a Web page, type the following link and save the page (substitute your RealServer's machine name or IP address for address):
<a href="http://address:8080/ramgen/ondemand.rm">Click here to listen to my CD</a>
The word "ramgen" tells RealServer to instruct the Web browser to start RealPlayer. The Ramgen feature is described in "Ram Files and Ramgen".
If you added the link to the Web page in Step 3, use a Web browser to view the page. Click the link that says "Click here to listen to my CD". RealPlayer starts, and you hear the one-minute clip you created.
To play this in RealPlayer without using a Web page, start RealPlayer and choose File > Open Location. Type this URL and then click OK:
rtsp://address:554/ondemand.rm
In this section, you'll encode your music CD directly to your RealServer and broadcast it while it encodes. You'll listen to it from a second computer.
Instructions in this section create a demonstration audio clip, using a music CD, and RealProducer Plus G2 version 6.1. Other versions of RealProducer Plus may have slightly different steps than the ones shown below; if you have a different software version, use these steps as a guide.
There are many ways you can optimize the encoding to make the best possible listening experience, but these instructions are brief so that you can hear results quickly.
|
|
Additional Information |
|---|
| To learn more about options for encoding, refer to RealProducer Plus User's Guide, available at http://service.real.com/help/library/index.html |
4040.
live.rm. (Always use the .rm extension.)
The New Session dialog box closes, returning to the RealProducer Plus main window.
A message appears, asking if you want to add clip information.
Create a link for the live broadcast in a Web page. (The Web page can be local; it does not have to be on a remote Web server.)
In an existing Web page, type the following link and save the page (substitute your RealServer name or IP address for address):
<a href="http://address:8080/ramgen/encoder/live.rm">Click here to listen to my CD</a>
Go to a second machine that has a sound card, speakers, and RealPlayer installed.
RealPlayer starts, and you join the music broadcast in progress.
To play this in RealPlayer without using a Web page, start RealPlayer and choose File > Open Location. Type this URL and then click OK:
rtsp://address:554/encoder/live.rm
The word "encoder" tells RealServer to look for live input from RealProducer Plus or other encoding software.
Notice that there are a few seconds of delay on your system. Encoding is not instantaneous, plus the music must travel over the network to the second machine. This delay ensures reliability and cannot be eliminated.
When you have finished with this demonstration, click Stop in RealProducer Plus to halt the live encoding.