This chapter describes the methods RealPlayer calls to inform an application of its state.
Sent when a clip is opened by the control. Parameters:
string shortClipName
string URL
Sent to indicate that no clip is currently opened by the control. No parameters.
Sent to indicate that the status text is changing. Parameter:
string statusText
Sent when an URL event is encountered for the RealPlayer clip currently playing. This event occurs only if the AutoGotoURL property is FALSE
. Parameters:
string URL
string target
Called when the position in the clip changes. The current position of the clip (in milliseconds) is returned. Parameter:
long position
long length
Called when the length of the clip changes, generally when a new clip is loaded. Parameter:
long length (in milliseconds)
Called when the volume level changes. The current volume level value is returned. The valid volume range is 0-100, where 0 represents no volume. Parameter:
short volume
Called when the title string changes. The new title string is returned. Parameter:
string title
Called when the author string changes. The new author string is returned. Parameters:
string author
Called when the copyright string changes. The new copyright string is returned. Parameters:
string copyright
Called when the play state changes. See GetPlayState()
for play state values. Parameter:
long newPlayState
Called when an error occurs. See GetLastErrorRMACode()
and GetLastErrorSeverity()
for more information on error codes and severities.
Returns percentage of buffering complete.
![]() |
Note |
---|
The OnBuffering() method is not currently supported. It
will be supported in an upcoming release.
|
Called when RealPlayer contacts a host. Returns host name string.
Returns key code when user presses and holds down a keyboard key. Sent only when SetWantKeyboardEvents()
is set to TRUE
.
Returns key code when user presses and releases a keyboard key. Sent only when SetWantKeyboardEvents()
is set to TRUE
.
Returns key code when user releases keyboard key. Sent only when SetWantKeyboardEvents()
is set to TRUE
.
Returns mouse position and flags when user holds down the left mouse button. Sent only when SetWantMouseEvents()
is set to TRUE
.
Returns mouse position and flags when user releases the left mouse button. Sent only when SetWantMouseEvents()
is set to TRUE
.
Returns mouse position and flags when user double clicks the right mouse button. Sent only when SetWantMouseEvents()
is set to TRUE
.
Returns mouse position and flags when user releases the right mouse button. Sent only when SetWantMouseEvents()
is set to TRUE
.
Returns mouse position and flags when user moves the mouse. Sent only when SetWantMouseEvents()
is set to TRUE
.
Called when component has fetched the stream header information. Called if PREFETCH
is set to true in the <EMBED>
or <OBJECT>
tag or GetPreFetch()
is set to TRUE
.
Called when the user performs a seek by moving the presentation position slider. Returned values include the presentation time when the seek occured and the value for the seek-to time.
Called when a seek completes. Returned values include the presentation time before the seek occured and the time value after the seek occurs.
Called when the presentation stops.
Called when the presentation starts.
The following callback methods are used with RealPlayer G2 and RealPlayer 5.0. If you support both versions of RealPlayer, your application will receive only the following: