This appendix provides examples that show how to set up some simple streaming presentations quickly. This information will aid you if you are a beginning user. Once you are familiar with the basic steps for hosting RealSystem G2 presentations, you can easily create more complex presentations.
 |
Note |
|
You will need to get the correct URLs for media clips
from the RealServer or Web server administrator.
Substitute those values for the example URLs shown
below.
|
Streaming a RealAudio or RealVideo Clip
It's simple to add a RealAudio or RealVideo clip to your Web page. Following the instructions below, you can stream the clip from RealServer G2 or download it from a Web server. The clip plays back in RealPlayer.
To create the clip:
- Prepare your audio or video source file for encoding. This can include normalizing the audio source file or setting the video's window size.
- Use a RealNetworks encoding tool to encode the RealAudio or RealVideo clip from your audio or video source file. RealVideo and RealAudio clips use the file extension .rm.
To stream the clip from RealServer G2 using Ramgen:
- Transfer the clip to the RealServer G2 directory prepared by the RealServer administrator.
- Link your Web page to the clip with an HTML hyperlink that specifies the RealServer address, the
ramgen parameter, and the HTTP protocol. You can get this information from the RealServer administrator. In your HTML source file, the link will look like this example:
<a href="http://realserver.company.com:8080/ramgen/content/myclip.rm">
Click here</a> to see my RealVideo presentation.
- In your Web browser, click the link to verify that it works. RealPlayer will launch as a helper application and, after a few seconds of buffering, will play the streaming clip.
To play the clip back from a Web server:
- With any text editor, open a new file and enter the URL your clip will have on the Web server. For example:
http://www.company.com/media/myclip.rm
- Save this file as plain text with the file extension .ram. This is your Ram file.
- Transfer the media clip and the Ram file to the appropriate directory on the Web server.
- Link your Web page to the Ram file (not the media clip) with a standard HTML hyperlink like this:
<a href="http://www.company.com/media/myclip.ram">
Click here</a> to see my RealVideo presentation.
- In your Web browser, click the link to verify that it works. RealPlayer will launch as a helper application and, after a few seconds of buffering, will play the clip.
Embedding a RealVideo Clip in a Web Page
Using RealPlayer's Netscape plug-in, you can embed a RealVideo clip directly in your Web page. The following example assumes that the video is 176 pixels wide by 132 pixels high. It places the video window and the full RealPlayer control panel in your Web page.
To embed the clip in your Web page:
- In your Web page, add the
<EMBED> tag with the RealVideo URL, window size, and ImageWindow control. The following example assumes RealServer G2 will stream the presentation:
<EMBED WIDTH=176 HEIGHT=132
SRC="http://realserver.company.com:8080/ramgen/content/myclip.rm?embed"
CONTROLS=ImageWindow CONSOLE=one>
If you intend to play the clip back from a Web server, use an HTTP URL and link to a Ram file with the extension .rpm (see below) as in the following example:
<EMBED WIDTH=176 HEIGHT=132
SRC="http://www.company.com/media/myclip.rpm"
CONTROLS=ImageWindow CONSOLE=one>
- You can then add RealPlayer controls through additional
<EMBED> tags that all use the same URL for the SRC parameter. The following example embeds the full RealPlayer control panel in the Web page, linking it to the image window through the same console. It assumes RealServer will stream the presentation:
<EMBED WIDTH=375 HEIGHT=100
SRC="http://realserver.company.com:8080/ramgen/content/myclip.rm?embed"
CONTROLS=All CONSOLE=one>
Use an <EMBED> tag like the following when playing the clip back from a Web server:
<EMBED WIDTH=375 HEIGHT=100
SRC="http://www.company.com/media/myclip.rpm"
CONTROLS=All CONSOLE=one>
 |
Tip |
Because you can place each <EMBED> tag anywhere on
your Web page, you can lay out the image window and
controls in any manner using HTML.
|
 |
Additional Information |
|
If you have installed RealPlayer G2, click
here to see a Web page with all the embedded
controls.
|
- Transfer the clip to the appropriate RealServer G2 or Web server directory. When streaming from G2, you are ready to test the clip because the Web page already contains the link to the RealVideo clip.
To create the Ram file when playing the clip back from a Web server:
- With any text editor, open a new file and enter the URL your clip will have on the Web server, as in the following example:
http://www.company.com/media/myclip.rm
- Save this file as plain text with the file extension .rpm. This is your Ram file.
- Transfer the Ram file to the appropriate directory on the Web server.
- In your Web browser, click the link to verify that it works.
URL Reference
As explained throughout this manual, URLs to files and clips vary depending on what kind of file or clip you link to and what type of file contains the link. The table below provides a quick reference for the protocol used for various types of links. It also shows whether the link should invoke RealServer's Ramgen utility. This table assumes that the presentation is for RealPlayer G2 and not earlier versions of RealPlayer.
Copyright © 1998
RealNetworks
For information on RealNetworks' technical support, click here.
Comments on this document? Click here.
This file last updated on 12/18/98 at 14:36:39.