RealOne Player Javascript 方法
| Sample File |
说明 |
Feature Illustrated |
参考 |
play.htm |
Plays a simple clip in the media playback pane. |
PlayClip method |
点这里 |
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 |
点这里 |
play3.htm |
Plays a simple clip in the media playback pane, and loads a separate HTML file in the related info pane. |
PlayClip method |
点这里 |
play4.htm |
Plays a simple clip in the media playback pane. and loads a separate HTML file in the media browser pane. |
PlayClip method |
点这里 |
color.htm |
Changes the background color of the media playback pane. |
SetVideoBackgroundColor method |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
add.htm |
Adds a clip to the Now Playing list or deletes all clips from the Now Playing list. |
AddToNowPlaying and ClearNowPlaying methods |
点这里 |
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 |
点这里 |
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. |
点这里 |
property.htm |
Displays the RealOne Player properties and their current values. |
PlayerProperty method |
点这里 |
clipinfo.htm |
Plays a clip that contains altered clip information, and displays the new clip information in the related info pane. |
GetClipInfo method |
点这里 |
playstate.htm |
Plays a clip in the media playback pane, and contains a button that retrieves the current player state. |
GetPlayerState method |
点这里 |
callback.htm |
Displays any callbacks received from the RealOne Player. |
RPOnBuffering, RPOnPositionLengthChange, RPOnPreload, and RPOnStateChange events |
点这里 |
RealOne Player VBScript 方法
| Sample File |
说明 |
Feature Illustrated |
参考 |
play.htm |
Plays a simple clip in the media playback pane. |
PlayClip method |
点这里 |
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 |
点这里 |
play3.htm |
Plays a simple clip in the media playback pane, and loads a separate HTML file in the related info pane. |
PlayClip method |
点这里 |
play4.htm |
Plays a simple clip in the media playback pane. and loads a separate HTML file in the media browser pane. |
PlayClip method |
点这里 |
color.htm |
Changes the background color of the media playback pane. |
SetVideoBackgroundColor method |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
add.htm |
Adds a clip to the Now Playing list or deletes all clips from the Now Playing list. |
AddToNowPlaying and ClearNowPlaying methods |
点这里 |
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 |
点这里 |
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. |
点这里 |
property.htm |
Displays the RealOne Player properties and their current values. |
PlayerProperty method |
点这里 |
clipinfo.htm |
Plays a clip that contains altered clip information, and displays the new clip information in the related info pane. |
GetClipInfo method |
点这里 |
playstate.htm |
Plays a clip in the media playback pane, and contains a button that retrieves the current player state. |
GetPlayerState method |
点这里 |
callback.htm |
Displays any callbacks received from the RealOne Player. |
RPOnBuffering, RPOnPositionLengthChange, RPOnPreload, and RPOnStateChange events |
点这里 |
RealOne Player ActiveX 方法
| Sample File |
说明 |
Feature Illustrated |
参考 |
play.htm |
Opens the RealOne Player from an external web page and plays a simple clip in the media playback pane. |
PlayClip method |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 Player ActiveX control in an external web page. |
点这里 |
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 |
点这里 |
url.htm |
Opens the RealOne Player from an external web page, then opens a specified URL in the media browser pane. |
OpenURLInPlayerBrowser method |
点这里 |
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 |
点这里 |
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 |
点这里 |
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. |
点这里 |
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 |
点这里 |
Basic Web Page Embedding
| Sample File |
说明 |
Feature Illustrated |
参考 |
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 |
点这里 |
plugin2.htm |
Same as the preceding, but the controls are embedded using both <EMBED> and <OBJECT> tags. |
<EMBED> and <OBJECT> tags combined |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
multiple.htm |
Two videos are linked to two different sets of controls. Each video plays in the same image window, however. |
CONSOLE parameter |
点这里 |
Embedded Player Javascript 方法
| Sample File |
说明 |
Feature Illustrated |
参考 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
position.htm |
Demonstrates the position controls for the clip being played. position and clip length. |
GetPosition, SetPosition, and GetLength methods |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
liveplay.htm |
Is the presentation live, or is it recorded? |
GetLiveState method |
点这里 |
dialog.htm |
Demonstrates how to open the Statistics, Preferences, and About RealOne Player dialog boxes. |
GetShowStatistics, SetShowStatistics, GetShowPreferences, SetShowPreferences, GetShowAbout, and SetShowAbout methods |
点这里 |
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 |
点这里 |
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 |
点这里 |
display.htm |
Shows how to zoom the presentation from its original size to full screen and back. |
GetOriginalSize, SetOriginalSize, GetFullScreen, and SetFullScreen methods |
点这里 |
version.htm |
Displays the player's major, minor, and build version information. |
GetVersionInfo method |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里, 点这里 |
Embedded Player VBScript 方法
| Sample File |
说明 |
Feature Illustrated |
参考 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
position.htm |
Demonstrates the position controls for the clip being played. position and clip length. |
GetPosition, SetPosition, and GetLength methods |
点这里 |
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 |
点这里 |
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 |
点这里 |
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 |
点这里 |
liveplay.htm |
Is the presentation live, or is it recorded? |
GetLiveState method |
点这里 |
dialog.htm |
Demonstrates how to open the Statistics, Preferences, and About RealOne Player dialog boxes. |
GetShowStatistics, SetShowStatistics, GetShowPreferences, SetShowPreferences, GetShowAbout, and SetShowAbout methods |
点这里 |
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 |
点这里 |
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 |
点这里 |
display.htm |
Shows how to zoom the presentation from its original size to full screen and back. |
GetOriginalSize, SetOriginalSize, GetFullScreen, and SetFullScreen methods |
点这里 |
version.htm |
Displays the player's major, minor, and build version information. |
GetVersionInfo method |
点这里 |
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 |
点这里 |
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 |
点这里 |