w3pop.com :: ÍøÂçѧԺ :: 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 ÊôÐÔ¶ÀÁ¢µØÈ·ÈÏÁËËùʹÓõ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”¡£
| 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. ÏÔʾ״̬¡¢Î»ÖúÍÉùµÀ |
ÆÀÂÛ (0)
All