ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: Internet :: ²¥·ÅRealÊÓÆµµçÓ°

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

Internet
²¥·ÅQuickTimeµçÓ..
²¥·ÅRealÊÓÆµµçÓ°
ÍøÂç¶àýÌåÔªËØ²Î..
WindowsýÌå²¥·ÅÆ..
MIME ²Î¿¼
W3C ¼ò½é
W3C ±ê×¼»¯½ø³Ì
W3C HTML
W3C XHTML
W3C XML
W3C CSS
W3C XSL
W3C XML Schema
W3C XPath
W3C XQuery
W3C DOM
W3C Soap
W3C WSDL
W3C RDF ºÍ OWL
W3C SMIL

²¥·ÅRealÊÓÆµµçÓ°


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-29 ä¯ÀÀ:3188 :: ::

The <object> element can play Real Video movies.
<object>ÔªËØ¿ÉÒÔ²¥·ÅReal ÊÓÆµµçÓ°¡£


The Real Video Format
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.
¸Ã¸ñʽÔÊÐíµÍ´ø¿íÊÓÆµÁ÷£¨ÔÚÏßÊÓÆµ¡¢ÍøÂçµçÊÓ£©¡£ÓÉÓÚËüÓÅÏÈ¿¼Âǵʹø¿í£¬Òò´Ë£¬ÖÊÁ¿Ïà¶ÔÀ´Ëµ¾ÍµÃ²»µ½±£Ö¤ÁË¡£


The Solution
½â¾ö·½·¨

This is the code required to play a Real Video movie:
ÏÂÃæÕâ¶Î´úÂëÒªÇó±ØÐë²¥·ÅReal ÊÓÆµ£º

<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>


The <object> Element
<object>ÔªËØ

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 ÊôÐÔ¶ÀÁ¢µØÈ·ÈÏÁËËùʹÓõIJ¥·ÅÆ÷Èí¼þ¡£Ëü±ØÐëÉèÖÃΪ“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”¡£


Object Reference
¶ÔÏó²ÎÊý

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 %.
Ϊ¶ÔÏó¶¨Òå¿í¶È¡£¿ÉÒÔÒÔÏñËØÎªµ¥Î»£¬»òÕßÊÇ%

Parameter Reference
²ÎÁ¿²ÎÊý

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 ʼþ´úÌæ

Controls Values
¿Ø¼þÖµ

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.
ÏÔʾ״̬¡¢Î»ÖúÍÉùµÀ

ÆÀÂÛ (0) All