Play Real Video Film
- Previous Page Object QuickTime
- Next Page Tag Reference
<object> 元素能够播放 Real Video 影片。
Real Video 格式
RealVideo 格式由 Real Media 开发。以 Real Video 格式存储的视频,其扩展名是 .rm 或 .ram。
该格式允许低带宽下的视频流(在线视频、因特网电视)。由于其低带宽优先权,往往会削弱视频质量。
解决方案
这是播放 Real Video 影片所需的代码:
<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> 元素
object 元素的 width 和 height 属性应当匹配影片的尺寸(以像素计)。
classid 可唯一地标识要使用的播放器软件。它必须设置为 "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"。该唯一编码标识了在电影播放之前必须安装在用户 PC 上的 ActiveX 控件。如果用户未安装该 ActiveX 控件,则浏览器将自动下载并安装它。
param 元素为播放器提供附加信息。
src 参数指向电影文件。
如果您希望电影自动播放的话,请将 autostart 参数设置为 "true"。
如果您不希望显示控制按钮,请将 controls 参数设置为 "ImageWindow",如果希望显示所有控制按钮,请将该参数设置为 "All"。
Object 参考
属性 | 定义 |
---|---|
classid | 对象的唯一 id。 |
height | 对象的高度。以像素或百分比计。 |
width | 对象的宽度。以像素或百分比计。 |
Parameter 参考
属性 | 定义 |
---|---|
src | RealAudio 或 RealVideo 片断的源。 |
controls | 控件的可见性。(请参阅下文)。 |
console | 链接多个控件的控制台名称。 |
autostart | Autoplay. (true | false). |
nolabels | Disable the label text of the 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. |
Control Value
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