This chapter provides a alphabetized reference to the event handlers you can use in the RealOne Player environment. For an overview of events and event handlers, see "Using RealOne Player Event Handlers".
Indicates the type of buffering currently occurring, and the percentage of the buffering that has completed.
window.parent.extrenal.RPOnBuffering( flags, percent_complete ) |
Integer value indicating the type of buffering. One of the following:
| Value | Description |
|---|---|
0 |
Buffering start up. |
1 |
Buffering resulting from a seek. |
2 |
Buffering resulting from network congestion. |
3 |
Buffering resulting from resuming after pausing a live presentation. |
The amount of buffering completed, in percent.
Indicates the current time position in the clip, and the total length of the clip. This event is called twice per second (that is, every 0.5 second) during the presentation playback.
windows.parent.external.RPOnPositionLenghtChange( position, length ) |
Contains the current position of the clip, in milliseconds.
The total length of the clip, in milliseconds.
The following example uses RPOnPositionLengthChange to synchronize HTML
with your presentation when the presentation is running between the 5 and
10 second marks.
var flag = 0 |
Performs tasks, such as preloading URLs, before loading the media stream in the Media Playback pane.
RPOnPreload() |
The following example shows how you could call PreloadURL within
RPOnPreload to cache two different URLs (www.example1.com and
www.example2.com) before playback.
<head> |
Indicates the play state of RealOne Player has changed (for example from Play to Pause).
window.parent.external.RPOnStateChange( newPlayState ) |
Integer value indicating the current state. One of the following:
|
|
©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. |