previous next

Chapter 1: RealText Authoring

With RealText, you can create text presentations that you stream alone or in combination with other media such as audio or video. You simply create a RealText file with mark-up similar to HTML to describe how and when the text displays. RealServer or a Web server can then stream the text to RealPlayer or Web browsers.

Choosing Window Types

RealText provides a number of window styles that you can choose depending on how you want to display text. If you have installed RealPlayer, click the link to see an example of each of these window types:

Using RealText Mark-Up

The RealText mark-up language is similar to HTML. If you are familiar with HTML, you will pick up RealText quickly. The mark-up has some important differences from HTML, though. Keep the following points in mind when writing a RealText file:

Creating a RealText Presentation

The following steps describe how to create a static RealText file. The rest of this manual describes the RealText mark-up in detail. The technical blueprint RealText Broadcasting explains how to use a simple application to broadcast RealText. The broadcast application and technical blueprint are included in the RealSystem Authoring Kit, available as a download at http://www.realnetworks.com/products/authkit/index.html.

To Create a RealText File:

  1. Open a new file in a text editor or XML editor. At the top of the file, add the <window> tag with necessary options. Add the </window> tag at the bottom:
    
    <window...options...>
    ...All Other Mark-up Goes Between These Tags...
    </window>

    Additional Information
    See "Window Tag Attributes".

  2. Between the <window> and </window> tags, add the text that will display in RealPlayer. Format the text with the text tags:
    
    <window>
    Mary had a little lamb,
    <br/><time begin="3"/>little lamb,
    <br/><time begin="6"/>little lamb,
    <br/><time begin="9"/>Mary had a little lamb
    <br/><time begin="12"/>whose fleece was white as snow.
    </window>

    Additional Information
    See "Text Tags".

  3. Save the file as plain text, using the .rt extension to mark the file as a RealText document. On your local machine, open the RealText file with RealPlayer to test the presentation.

    Tip
    Playing a RealText file on your local machine indicates whether the RealText mark-up is correct. However, it does not guarantee that the file will stream across a network well. Be sure to test that the presentation streams correctly from RealServer.

  4. To combine RealText with another file, create a SMIL file that controls the overall presentation. For example, the SMIL file can list a RealText file and video file played together:
    
    <smil>
    <body>
    <par>
    <textstream src="rtsp://realserver.company.com/mary.rt"/>
    <video src="rtsp://realserver.company.com/mary.rm"/>
    </par>
    </body>
    </smil>

    Additional Information
    See RealSystem Production Guide available at http://service.real.com/help/library/encoders.html for information about creating a SMIL file.

  5. Move your files to RealServer. If you are using an Internet Service Provider, for example, contact the ISP's RealServer administrator for instructions on doing this.

  6. In your Web page, add a hypertext link to the SMIL file. Or, if the RealText file is the only file in your presentation, simply link to that file.

    Additional Information
    RealSystem Production Guide explains the options for linking your Web page to your presentation. It also explains how to play your RealText presentation in your Web page rather than in RealPlayer.

  7. Test the presentation by clicking the hyperlink in your Web page. This launches RealPlayer, which displays the streaming text with the properties you defined through the RealText mark-up.

Notes on Text Streaming

  1. RealText consumes minimal bandwidth, typically less than 1 Kbps. RealText presentations are therefore easily accessible to users with slow network connections. When combining RealText with another media type, structure the presentation so that RealText has approximately 1 Kbps of available bandwidth.

    Additional Information
    See RealSystem Production Guide available at http://service.real.com/help/library/encoders.html for more information about bandwidth consumed by video or audio that accompanies RealText.

  2. Although RealServer provides reliable streaming, packets occasionally may be lost. If a block of text does not get through, RealPlayer displays the following to indicate missing text:
    
    ...
    


Copyright © 1998-2000 RealNetworks
For information on RealNetworks' technical support, click here.
Comments on this document? Click here.
This file last updated on 12/15/00 at 10:37:06.
previous next