Sample Files

This page gathers the multimedia samples found throughout this guide, and includes additional samples not included in the guide's various chapters. 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.

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.

Note: If you browse the HTML version of this guide with 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 (version 5.5 or higher recommended) to browse the guide. This linking problem affects only local, relative URLs to clips played in RealOne Player. It does not affect streamed presentations in which the viewer launches the presentation from a Web page rendered in Navigator 6.

License Agreement

The sample files included with this guide are the property of RealNetworks, and are licensed solely for your use in learning RealNetworks technologies, as well as for creating customized RealSystem 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. Samples are available for the following features:

RealOne Player Javascript Methods

The samples presented in the following table demonstrate various methods used from within JavaScript. To properly view these methods, each of these samples must be started directly in the RealOne Player.

Note: The javarealone folder in the samples directory contains several files that use absolute, local paths. For these files to run properly on Windows, you can copy the entire samples directory to your C: drive. Then, use your RealOne Player to open the sample in the javarealone folder (c:\samples\javarealone). Alternatively, you can edit the sample files to change the paths to the actual locations of these HTML files and clips on your computer. Media clips are in the clips folder.

RealOne Player Javascript Methods
Sample File Description Feature Illustrated Reference
play.htm Plays a simple clip in the media playback pane. PlayClip method click here
play2.htm Plays a simple clip in the media playback pane, and includes clip information in the status display and the related info pane. PlayClip method click here
play3.htm Plays a simple clip in the media playback pane, and loads a separate HTML file in the related info pane. PlayClip method click here
play4.htm Plays a simple clip in the media playback pane. and loads a separate HTML file in the media browser pane. PlayClip method click here
color.htm Changes the background color of the media playback pane. SetVideoBackgroundColor method click here
rversion.htm Displays the RealOne Player version number in packed form, then displays the version number in unpacked form. RealPlayerVersion method and the UnpackVersionNumber function click here
install.htm Returns a list of all of the installed components in the user's RealOne Player, along with the version number of each component. InstalledComponents method click here
url.htm Plays a clip in the media playback pane, and opens a specified URL in the media browser pane after five seconds. OpenURLInPlayerBrowser method and RPOnPositionLengthChange callback click here
add.htm Adds a clip to the Now Playing list or deletes all clips from the Now Playing list. AddToNowPlaying and ClearNowPlaying methods click here
action.htm Handles various actions in the RealOne Player, such as navigating to a specified URL, opening player dialog boxes, and opening the player tabs. HandleAction method click here
component.htm Retrieves and displays the packed version number of a specified component, then displays the unpacked version number for that component. ComponentVersion method and UnpackVersionNumber function. click here
property.htm Displays the RealOne Player properties and their current values. PlayerProperty method click here
clipinfo.htm Plays a clip that contains altered clip information, and displays the new clip information in the related info pane. GetClipInfo method click here
playstate.htm Plays a clip in the media playback pane, and contains a button that retrieves the current player state. GetPlayerState method click here
callback.htm Displays any callbacks received from the RealOne Player. RPOnBuffering, RPOnPositionLengthChange, RPOnPreload, and RPOnStateChange events click here

RealOne Player VBScript Methods

The samples presented in the following table demonstrate various methods used from within VBScript. To properly view these methods, each of these samples must be started directly in the RealOne Player.

Note: The vbrealone folder in the samples directory contains several files that use absolute, local paths. For these files to run properly on Windows, you can copy the entire samples directory to your C: drive. Then, use your RealOne Player to open the sample in the vbrealone folder (c:\samples\vbrealone). Alternatively, you can edit the sample files to change the paths to the actual locations of these HTML files and clips on your computer. Media clips are in the clips folder.

RealOne Player VBScript Methods
Sample File Description Feature Illustrated Reference
play.htm Plays a simple clip in the media playback pane. PlayClip method click here
play2.htm Plays a simple clip in the media playback pane, and includes clip information in the status display and the related info pane. PlayClip method click here
play3.htm Plays a simple clip in the media playback pane, and loads a separate HTML file in the related info pane. PlayClip method click here
play4.htm Plays a simple clip in the media playback pane. and loads a separate HTML file in the media browser pane. PlayClip method click here
color.htm Changes the background color of the media playback pane. SetVideoBackgroundColor method click here
rversion.htm Displays the RealOne Player version number in packed form, then displays the version number in unpacked form. RealPlayerVersion method and the UnpackVersionNumber function click here
install.htm Returns a list of all of the installed components in the user's RealOne Player, along with the version number of each component. InstalledComponents method click here
url.htm Plays a clip in the media playback pane, and opens a specified URL in the media browser pane after five seconds. OpenURLInPlayerBrowser method and RPOnPositionLengthChange callback click here
add.htm Adds a clip to the Now Playing list or deletes all clips from the Now Playing list. AddToNowPlaying and ClearNowPlaying methods click here
action.htm Handles various actions in the RealOne Player, such as navigating to a specified URL, opening player dialog boxes, and opening the player tabs. HandleAction method click here
component.htm Retrieves and displays the packed version number of a specified component, then displays the unpacked version number for that component. ComponentVersion method and UnpackVersionNumber function. click here
property.htm Displays the RealOne Player properties and their current values. PlayerProperty method click here
clipinfo.htm Plays a clip that contains altered clip information, and displays the new clip information in the related info pane. GetClipInfo method click here
playstate.htm Plays a clip in the media playback pane, and contains a button that retrieves the current player state. GetPlayerState method click here
callback.htm Displays any callbacks received from the RealOne Player. RPOnBuffering, RPOnPositionLengthChange, RPOnPreload, and RPOnStateChange events click here

RealOne Player ActiveX Methods

The samples presented in the following table demonstrate various RealOne Player methods that can be used on an external web page (that is, on an Internet Explorer page or any application that uses ActiveX controls). From this external web page, you can control various aspects of the RealOne Player.

Note: The ActiveXrealone folder in the samples directory contains several files that use absolute, local paths. For these files to run properly on Windows, you can copy the entire samples directory to your C: drive. Then, use your browser to open the sample in the ActiveXrealone folder (c:\samples\ActiveXrealone). Alternatively, you can edit the sample files to change the paths to the actual locations of these HTML files and clips on your computer. Media clips are in the clips folder.

RealOne Player ActiveX Methods
Sample File Description Feature Illustrated Reference
play.htm Opens the RealOne Player from an external web page and plays a simple clip in the media playback pane. PlayClip method click here
play2.htm Opens the RealOne Player from an external web page and plays a simple clip in the media playback pane, and includes clip information in the status display and the related info pane. PlayClip method click here
play3.htm Opens the RealOne Player from an external web page, plays a simple clip in the media playback pane, and loads a separate HTML file in the related info pane. PlayClip method click here
play4.htm Opens the RealOne Player from an external web page, plays a simple clip in the media playback pane, and loads a separate HTML file in the media browser pane. PlayClip method click here
rversionX.htm Displays the RealOne Player version number in packed and unpacked form from an external web page. RealPlayerVersion method and the UnpackVersionNumber function, along with the RealOne ActiveX control in an external web page. click here
install.htm Returns a list of all of the installed components in the user's RealOne Player, along with the version number of each component. InstalledComponents method click here
url.htm Opens the RealOne Player from an external web page, then opens a specified URL in the media browser pane. OpenURLInPlayerBrowser method click here
add.htm Opens the RealOne Player from an external web page, then either adds a clip to the Now Playing list or deletes all clips from the Now Playing list. AddToNowPlaying and ClearNowPlaying methods click here
action.htm Opens the RealOne Player from an external web page, then handles various actions in the RealOne Player, such as navigating to a specified URL, opening player dialog boxes, and opening the player tabs. HandleAction method click here
component.htm Retrieves and displays the packed version number of a specified component of the RealOne Player from an external web page, then displays the unpacked version number for that component. ComponentVersion method and UnpackVersionNumber function. click here
callback.htm Opens the RealOne Player from an external web page, opens a separate web page in the media browser pane to receive callbacks, and plays a clip while displaying the callbacks. RPOnBuffering, RPOnPositionLengthChange, RPOnPreload, and RPOnStateChange events click here

Basic Web Page Embedding

Basic Web Page Embedding
Sample File Description Feature Illustrated Reference
plugin.htm An HTML page opens, plays a video, and exhibits all the RealOne Player controls that you can add to a Web page. all RealOne Player controls, as well as the CONSOLE and AUTOSTART parameters click here
plugin2.htm Same as the preceding, but the controls are embedded using both <EMBED> and <OBJECT> tags. <EMBED> and <OBJECT> tags combined click here
allcontrol.htm An HTML page embeds various sizes of the All control, showing how that control drops certain features as you reduce its width or height CONTROLS=All at different widths and heights click here
controlpanel.htm An HTML page embeds various sizes of the ControlPanel control, showing how that control drops certain buttons as you reduce its width. CONTROLS=ControlPanel at different widths click here
taccontrol.htm An HTML page embeds various sizes of the TACCtrl control, showing how that control drops the Clip Info text as you reduce its width. CONTROLS=TACCtrl at different widths click here
statusbar.htm An HTML page embeds various sizes of the StatusBar control, showing how that control drops certain fields as you reduce its width. CONTROLS=StatusBar at different widths click here
multiple.htm Two videos are linked to two different sets of controls. Each video plays in the same image window, however. CONSOLE parameter click here

Embedded Javascript Methods

Embedded Player Javascript Methods
Sample File Description Feature Illustrated Reference
playback1.htm Embeds an image window on the page, and uses a simple form to provide play, pause, and stop buttons. In addition, provides buttons that display whether the presentation is playing, paused, or stopped. uses the <EMBED> tag for basic embedding, and uses a simple form to exercise the DoPlay, DoPause, DoStop and the CanPlay, CanPause, and CanStop methods click here
playback2.htm Embeds the Play, Pause, and stop RealOne Player buttons along with the image window. uses the <EMBED> tag to embed various RealOne Player components on the page click here
back.htm Changes the background color of the image window. If the size of the clip is smaller than the size of the image window, this background color fills the rest of the image window. GetBackgroundColor and SetBackgroundColor methods click here
prefetch.htm Enables or disables the prefetch attribute on the page. If prefetch is enabled, the first entry is prefetched, the size of of clip is displayed once the prefetch is complete, and the clip is then played. GetPreFetch and SetPreFetch methods, and OnPreFetchComplete callback handler click here
controls.htm When this page is loaded, no control attributes for the embedded components are set. Once you press the Set Controls button, all of the embedded components have their proper control attributes set. GetControls and SetControls methods click here
console.htm When this page is loaded, no console attributes are set (that is, none of the embedded components are linked to each other). Once you set the Set Console button, all of the embedded components are linked together. GetConsole and SetConsole methods click here
auto.htm This page is loaded with no play button. Press the Set Auto button to set the Auto Start attribute to true, which automatically starts playing the presentation. GetAutoStart and SetAutoStart methods click here
position.htm Demonstrates the position controls for the clip being played. position and clip length. GetPosition, SetPosition, and GetLength methods click here
cliptac.htm Displays and manipulates the presentation's title, author, and copyright information. Also displays the clip width and height. GetTitle, SetTitle, GetAuthor, SetAuthor, GetCopyright, SetCopyright, GetClipWidth, and GetClipHeight methods click here
playlist.htm Demonstrates how to move between presentation entries, how to display the entry information, and monitor the current play state. HasNextEntry, DoNextEntry, HasPrevEntry, DoPrevEntry, GetNumEntries, GetCurrentEntry, GetEntryTitle, GetEntryAuthor, GetEntryCopyright, GetEntryAbstract, and GetPlayState methods click here
state.htm Shows how to retrieve the current state of the player and, if buffering, how much time remains for it to buffer. GetPlayState, GetBufferingTimeElapsed, and GetBufferingTimeRemaining methods click here
liveplay.htm Is the presentation live, or is it recorded? GetLiveState method click here
dialog.htm Demonstrates how to open the Statistics, Preferences, and About RealOne Player dialog boxes. GetShowStatistics, SetShowStatistics, GetShowPreferences, SetShowPreferences, GetShowAbout, and SetShowAbout methods click here
volume.htm Shows how to get and set the volume and mute controls for the presentation. In addition, includes a button that determines whether the clip is in stereo or monaural. GetVolume, SetVolume, GetMute, SetMute, and GetStereoState methods click here
network.htm Provides all the network information about the clip that is currently playing. GetSourceTransport, GetPacketsTotal, GetPacketsReceived, GetNumSources, GetPacketsOutOfOrder, GetPacketsMissing, GetPacketsEarly, GetPacketsLate, GetBandwidthAverage, and GetBandwidthCurrent methods click here
display.htm Shows how to zoom the presentation from its original size to full screen and back. GetOriginalSize, SetOriginalSize, GetFullScreen, and SetFullScreen methods click here
version.htm Displays the player's major, minor, and build version information. GetVersionInfo method click here
errors.htm Disables or enables (default) error reporting, and reports any error information that is received. GetWantErrors, SetWantErrors, GetLastErrorUserString, GetLastErrorMoreInfoURL, GetLastErrorRMACode, GetLastErrorSeverity, and GetLastErrorUserCode methods click here
callback.htm Demonstrates how to receive callbacks from the embedded player. This sample only works with Netscape Navigator. most of the callbacks for the embedded RealOne Player click here
callback2.htm Demonstrates how to receive callbacks from the embedded player. This sample works on both Netscape Navigator and Internet Explorer. receiving callbacks on multiple browsers click here,
click here

Embedded VBScript Methods

Embedded Player VBScript Methods
Sample File Description Feature Illustrated Reference
playback1.htm Embeds an image window on the page, and uses a simple form to provide play, pause, and stop buttons. In addition, provides buttons that display whether the presentation is playing, paused, or stopped. uses the <EMBED> tag for basic embedding, and uses a simple form to exercise the DoPlay, DoPause, DoStop and the CanPlay, CanPause, and CanStop methods click here
playback2.htm Embeds the Play, Pause, and stop RealOne Player buttons along with the image window. uses the <EMBED> tag to embed various RealOne Player components on the page click here
back.htm Changes the background color of the image window. If the size of the clip is smaller than the size of the image window, this background color fills the rest of the image window. GetBackgroundColor and SetBackgroundColor methods click here
prefetch.htm Enables or disables the prefetch attribute on the page. If prefetch is enabled, the first entry is prefetched, the size of of clip is displayed once the prefetch is complete, and the clip is then played. GetPreFetch and SetPreFetch methods, and OnPreFetchComplete callback handler click here
controls.htm When this page is loaded, no control attributes for the embedded components are set. Once you press the Set Controls button, all of the embedded components have their proper control attributes set. GetControls and SetControls methods click here
console.htm When this page is loaded, no console attributes are set (that is, none of the embedded components are linked to each other). Once you set the Set Console button, all of the embedded components are linked together. GetConsole and SetConsole methods click here
auto.htm This page is loaded with no play button. Press the Set Auto button to set the Auto Start attribute to true, which automatically starts playing the presentation. GetAutoStart and SetAutoStart methods click here
position.htm Demonstrates the position controls for the clip being played. position and clip length. GetPosition, SetPosition, and GetLength methods click here
cliptac.htm Displays and manipulates the presentation's title, author, and copyright information. Also displays the clip width and height. GetTitle, SetTitle, GetAuthor, SetAuthor, GetCopyright, SetCopyright, GetClipWidth, and GetClipHeight methods click here
playlist.htm Demonstrates how to move between presentation entries, how to display the entry information, and monitor the current play state. HasNextEntry, DoNextEntry, HasPrevEntry, DoPrevEntry, GetNumEntries, GetCurrentEntry, GetEntryTitle, GetEntryAuthor, GetEntryCopyright, GetEntryAbstract, and GetPlayState methods click here
state.htm Shows how to retrieve the current state of the player and, if buffering, how much time remains for it to buffer. GetPlayState, GetBufferingTimeElapsed, and GetBufferingTimeRemaining methods click here
liveplay.htm Is the presentation live, or is it recorded? GetLiveState method click here
dialog.htm Demonstrates how to open the Statistics, Preferences, and About RealOne Player dialog boxes. GetShowStatistics, SetShowStatistics, GetShowPreferences, SetShowPreferences, GetShowAbout, and SetShowAbout methods click here
volume.htm Shows how to get and set the volume and mute controls for the presentation. In addition, includes a button that determines whether the clip is in stereo or monaural. GetVolume, SetVolume, GetMute, SetMute, and GetStereoState methods click here
network.htm Provides all the network information about the clip that is currently playing. GetSourceTransport, GetPacketsTotal, GetPacketsReceived, GetNumSources, GetPacketsOutOfOrder, GetPacketsMissing, GetPacketsEarly, GetPacketsLate, GetBandwidthAverage, and GetBandwidthCurrent methods click here
display.htm Shows how to zoom the presentation from its original size to full screen and back. GetOriginalSize, SetOriginalSize, GetFullScreen, and SetFullScreen methods click here
version.htm Displays the player's major, minor, and build version information. GetVersionInfo method click here
errors.htm Disables or enables (default) error reporting, and reports any error information that is received. GetWantErrors, SetWantErrors, GetLastErrorUserString, GetLastErrorMoreInfoURL, GetLastErrorRMACode, GetLastErrorSeverity, and GetLastErrorUserCode methods click here
callback.htm Demonstrates how to receive callbacks from the embedded player. This sample only works with Internet Explorer. all callbacks for the embedded RealOne Player click here


RealNetworks, Inc. ©2002 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.