Playing Real Video Movie
- Previous Page Object QuickTime
- Next Page Tag Reference
Course Recommendation:
The <object> element can play Real Video movies.
RealVideo Format
This format allows video streaming under low bandwidth (online video, Internet TV). Due to its priority of low bandwidth, it often weakens the video quality.
Solution
This is the code required to play Real Video movies:
<object width="320" height="240" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> <param name="controls" value="ImageWindow" /> <param name="autostart" value="true" /> <param name="src" value="male.ram" /> </object>
<object> element
The width and height attributes of the object element should match the size of the movie (in pixels).
The classid can uniquely identify the player software to be used. It must be set to "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA". This unique code identifies the ActiveX control that must be installed on the user's PC before the movie is played. If the user has not installed this ActiveX control, the browser will automatically download and install it.
The param element provides additional information to the player.
The src parameter points to the movie file.
If you want the movie to play automatically, set the autostart parameter to "true".
If you do not want to display control buttons, set the controls parameter to "ImageWindow", and if you want to display all control buttons, set the parameter to "All".
Object Reference
Property | Definition |
---|---|
classid | Unique id of the object. |
height | Height of the object. In pixels or percentages. |
width | Width of the object. In pixels or percentages. |
Parameter Reference
Property | Definition |
---|---|
src | Source of RealAudio or RealVideo clips. |
controls | Visibility of the controls. (See below for details). |
console | Link the control console names of multiple controls. |
autostart | Auto-play. (true | false). |
nolabels | Disable label text in control window. |
reset | Reset playlist control (true | false). |
autogotoURL | How to handle URL. (true | false) |
True | Forward URL event to the browser. |
False | Use VBScript instead. |
Value of the control
Value | Display |
---|---|
All | Display the complete player with all controls. |
InfoVolumePanel | Title, Author, Copyright, and Volume Slider. |
InfoPanel | Title, Author, and Copyright. |
ControlPanel | Position Slider, Play, Pause, and Stop Button. |
StatusPanel | Message, current time position, and fragment length. |
PlayButton | Play and Pause Button. |
StopButton | Stop Button. |
VolumeSlider | Volume Slider. |
PositionField | Position and Fragment Length. |
StatusField | Message. |
ImageWindow | Video Image. |
StatusBar | Status, Position, and Channel. |
- Previous Page Object QuickTime
- Next Page Tag Reference