当前位置: 首页 > 网络学院 > 网页制作基础教程 > Internet > 播放Real视频电影
The <object> element can play Real Video movies.
<object>元素可以播放Real 视频电影。
The RealVideo format is developed by Real Media. Videos stored in the Real Video format have the extension .rm or .ram.
Real 视频格式由Real 媒体公司开发。存储在Real 视频格式中的视频文件的扩展名为.rm 或 .ram。
The format allows streaming of video (on-line video, Internet TV) with low bandwidths. Because of the low bandwidth priority, quality is often reduced.
该格式允许低带宽视频流(在线视频、网络电视)。由于它优先考虑低带宽,因此,质量相对来说就得不到保证了。
This is the code required to play a Real Video movie:
下面这段代码要求必须播放Real 视频:
<object width="320" height="240" |
The width and height attributes of the object element should match the size of the movie in pixels.
该对象的width [宽度] 和 height [高度]属性是以像素为单位的,并且应该符合电影的尺寸大小。
The classid attribute uniquely identifies the player software to use. It must be set to "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA". This unique code identifies an ActiveX control that must be installed on the users PC before the movie can be played. If the user does not have the ActiveX control installed, the browser can automatically download and install it.
classid 属性独立地确认了所使用的播放器软件。它必须设置为“clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA”。这段独立的代码用于鉴别ActiveX控件,帮助用户在播放影片之前安装这个所需要的控件程序。
The param elements supply additional information to the player.
param参数为播放器提供了额外的信息。
The src parameter should point to the movie (or audio) file.
src参数应该指向电影(或 音频)文件。
The autostart parameter should have the value "true" if you want the movie to play automatically.
如果你希望自动播放影片,那么autostart 参数应该设置为“True”。
The controls parameter should have the value "ImageWindow" if you don't want the control buttons to show, or "All" if you want all the controls to show.
如果你不希望显示控件按钮,controls 参数应设置为“ImageWindow”;或者,如果你希望显示所有的控件,那么应设置为“All”。
Attribute 属性 | Defines 定义 |
---|---|
classid | A unique id for the object. 为对象定义一个独立的id |
height | The height of the object in pixels or %. 为对象定义高度。可以以像素为单位,或者是% |
width | The width of the object in pixels or in %. 为对象定义宽度。可以以像素为单位,或者是% |
Attribute 属性 | Defines 定义 |
---|---|
src | The source of a RealAudio or RealVideo clip. 指定Real音频或Real视频片断的源文件 |
controls | The visibility of the controls. (See below) 指定空间是否可视(见下面) |
console | A console name to link multiple controls. 连接多控件的控制台名称 |
autostart | Automatic start. (true | false). 自动开始(属性值为 true / false) |
nolabels | Suppression of label texts in the controls window. 在控件窗口中禁用标签文本 |
reset | Resetting the control for playlist. (true | false). 重新设置列表空间 (属性值为 true / false) |
autogotoURL | How a URL is handled. (true | false) 定义URL的处理方式(属性值为 true / false) True forwards URL event to the browser. 如设置为True,那么向浏览器返回前一个URL事件 False uses VBScript event instead. 如设置为False,那么使用VBScript 事件代替 |
Value 值 | Displays 显示 |
---|---|
All | Displays a full player with all controls. 显示播放器中的所有控件 |
InfoVolumePanel | Title, author, and copyright and volume slider. 显示作者、版权信息和音量滑钮 |
InfoPanel | Title, author, and copyright. 显示标题、作者和版权 |
ControlPanel | Position slider, play, pause, and stop buttons. 显示播放定位滑钮、播放、暂停和停止按钮 |
StatusPanel | Messages, current time position, and clip length. 显示消息、当前的时间轴位置和影片长度 |
PlayButton | Play and pause buttons. 显示播放和暂停按钮 |
StopButton | Stop button. 显示停止按钮 |
VolumeSlider | Volume slider. 显示音量滑动调节器 |
PositionField | Position and clip length. 显示位置和影片片段长度 |
StatusField | Messages. 显示消息 |
ImageWindow | The video image 显示视频图像 |
StatusBar | Status, position and channels. 显示状态、位置和声道 |