Sample Files

This page gathers the multimedia samples found throughout this guide. These samples are not configured to stream over the Internet. Before you play these samples, download this manual as described in "How to Download This Guide to Your Computer", and play the samples through your local copy. If you use these sample files as the basis for your own presentation, see also "Preparing Local Files for Streaming".

For More Information: For more demonstrations and information about creating media presentations that take advantage of RealOne Player's advanced features, visit http://www.realnetworks.com/resources/index.html.

Tip: The RealNetworks Production Guide, available at http://service.real.com/help/library/encoders.html, contains over 150 sample files demonstrating advanced SMIL features and clip types such as RealText.

Note: If you browse this manual with Netscape Navigator 6, you may not be able to play the linked sample files. If this occurs, you can open the sample files directly from the samples folder. You can also use Navigator 4.7 or Microsoft Internet Explorer to browse the guide.

License Agreement

The sample files that are included with this guide are the property of RealNetworks, and are licensed solely for your use in learning SMIL and RealNetworks technologies, as well as for creating customized presentations. You may not under any circumstances use, copy, sublicense, display, distribute, transmit, or reprint the sample files or the customized presentations, in whole or in part, without first obtaining written permission from RealNetworks. Except as set forth herein, all rights in the sample files are expressly reserved to RealNetworks.

Available Sample Files

All sample files are located in the samples folder. When playing a file, you can use RealOne Player's View>Clip>Clip Source command to view the source file used to create each example. Samples are available for the following features:

Ram Files

Chapter 3 explains how to write a Ram file that launches RealOne Player, and that can set parameters such as starting size and clip information. (samples list)

Ram Files
Sample File Description Feature Illustrated Reference
doublesize.ram A portion of a video clip plays twice, first at normal size, then at double size. screensize="double" click here
fullscreen.ram A video clip plays in full-screen mode. screensize="full" click here
startend.ram A portion from the middle of a video clip plays. start and end parameters click here
toolbar.ram A clip plays in toolbar mode, which is available only for subscribers of premium services. mode="toolbar" click here
theater.ram A clip plays in theater mode. mode="theater" click here
tac.ram An example of how to override clip-encoded information. Press Ctrl+i to view the information passed by the Ram file. title, author, and copyright parameters click here
clipinfo.ram An example of adding music clip information, such as title, author, genre, and so on. Press Ctrl+i to view the information passed by the Ram file. clipinfo parameter click here

Clip-Encoded URLs

Using the RMEvents utility, you can encode events directly into a clip, as described in Chapter 4. (samples list)

SMIL Syntax
Sample File Description Feature Illustrated Reference
video3_event.rm Five seconds after a video clip plays, a Web address opens in the media browser pane. URL encoding click here
eventfile.txt The events file that was merged with the video3.rm clip in the clips folders to create the preceding clip. event file syntax click here

SMIL Syntax

Before you write your own SMIL files, be sure that you understand the SMIL components and syntax rules. (samples list)

SMIL Syntax
Sample File Description Feature Illustrated Reference
smilmarkup.smil A demonstration of a simple SMIL file, illustrating the file's basic components and syntax rules. basic SMIL file construction click here

SMIL Hyperlinks to HTML Pages

Using SMIL, you can easily link RealOne Player to an HTML page that opens on a click, or automatically at a certain time. Chapter 6 describes hyperlinking. (samples list)

SMIL Hyperlinks to HTML Pages
Sample File Description Feature Illustrated Reference
overview.htm A demonstration of the many ways to use SMIL to launch HTML pages. RealOne Player related info and media browser panes; using SMIL to open URLs automatically click here
basiccontext.smil An HTML page opens automatically in the related info pane when the video starts. rn:sendTo="_rpcontextwin" attribute, related info pane sizing, and actuate="onLoad" click here
timedlinks.smil The video clip links to different HTML pages at different times. begin and dur attributes in an <area/> tag click here
timedlinks2.smil An audio clip links to different HTML pages that automatically open in the related info pane at different times. begin attributes in an <area/> tag, along with actuate="onLoad" click here

SMIL Sequences

Chapter 7 describes how to create sequences in a SMIL presentation. (samples list)

SMIL Sequences
Sample File Description Feature Illustrated Reference
audiosequence1.smil Three 15-second audio clips play in sequence without a <seq> group. The RealOne Player timeline slider resets after each clip. You can use the Play>Next Clip command. audio sequence created without a <seq> tag click here
audiosequence2.smil Three 15-second audio clips play in a <seq> group. The timeline slider lets you seek through all clips, but you cannot use the Play>Next Clip command. <seq> tag click here
videosequence.smil Three short videos play in sequence. <seq> tag, basic layout, and clip centering click here

SMIL Timing

Chapter 7 also explains some of the basic SMIL timing attributes. (samples list)

SMIL Timing
Sample File Description Feature Illustrated Reference
beginsample.smil A demonstration of how the begin attribute affects a video's start time. begin attribute click here
clipbeginsample.smil A demonstration of how clipBegin and clipEnd attributes affect how much of a video clip plays. clipBegin and clipEnd attributes click here
dursample.smil A demonstration of how the dur attribute affects how long a video clip plays. dur attribute click here

SMIL Layout

SMIL layout is described in Chapter 8. The following sample files demonstrate SMIL layout tags, attributes, and features. (samples list)

SMIL Layout
Sample File Description Feature Illustrated Reference
openatstart.smil If the media browser pane is attached, the video appears flush left, leaving room for a related info page that opens later. rn:contextWindow="openAtStart" click here
closedatstart.smil If the media browser pane is attached, the video appears centered at first, then moves to the left when the related info page opens. default behavior without rn:contextWindow="openAtStart" click here
videographic.smil A video appears in the center of a static image background. region stacking, clip centering click here
threeclips.smil Three clips play side-by-side. side-by-side region layout click here
regalign.smil A demonstration of common ways to align a clip within a region. regPoint and regAlign attributes in clip source tags click here
fithidden.smil A static clip displays in four regions that have different size and aspect ratios. Each region uses fit="hidden" (the default fit value). fit="hidden" in <region/> tags click here
fitfill.smil The same as the preceding sample, but with fit="fill" used in all regions. fit="fill" in <region/> tags click here
fitmeet.smil The same as the preceding sample, but with fit="meet" used in all regions. fit="meet" in <region/> tags click here
fitslice.smil The same as the preceding sample, but with fit="slice" used in all regions. fit="slice" in <region/> tags click here
fitscroll.smil The same as the preceding sample, but with fit="scroll" used in all regions. fit="scroll" in <region/> tags click here
quadrant.smil The same image displays in four quadrants of a region. In each quadrant, it uses a different fit value. four fit values compared click here
letterbox.smil A RealText clip using a 2.35:1 aspect ratio displays in a SMIL playback region using a 4:3 aspect ratio. fit="meet" used to create a letterbox effect click here

Interactive Presentations

The interactive folder in the samples directory links to three interactive presentations that are constructed through different production techniques. Several files in these presentations use absolute, local paths. On Windows, you can copy the entire samples directory to your C: drive. Then, use your browser to open START_HERE.htm in the interactive folder. Alternatively, you can edit the chooseclip.htm files and, in some cases, the Ram files, to change the links to the actual locations of these HTML files and clips on your computer. Media clips are in the clips folder. (samples list)

Preparing Local Files for Streaming

The sample files listed on this page are created for local playback, which allows you to experiment with the markup easily. As you develop and test your own SMIL presentations, it's convenient to use clips located on your computer or a network file server, tying them into your SMIL presentation with local URLs. However, a SMIL presentation that works perfectly for local playback may not necessarily stream well. This is because streaming involves bandwidth and protocol issues that are not relevant for local playback. The following sections guide you to relevant information you'll need to know to prepare a presentation for streaming.

Bandwidth Considerations

Before you write a single line of SMIL markup for any presentation, you need to develop a bandwidth strategy. What are the connection speeds of your target audience? Do you want to create a single clip for all viewers? Do you want to use SureStream to accommodate viewers who have different connection speeds? These are a few of the bandwidth issues that you need to address.

For More Information: For more on bandwidth management, see "Bandwidth Strategies".

Clip URLs

Incorrect URLs are the biggest problems both beginning and experienced users typically face when trying to stream a presentation. Local SMIL files can use relative clip URLs, but streaming SMIL presentations should use fully qualified URLs. Be careful always to ensure the following:


RealNetworks, Inc. ©2002, 2004 RealNetworks, Inc. All rights reserved.
For more information, visit RealNetworks
Click here if the Table of Contents frame is not visible at the left side of your screen.