- 爱易网页
-
JavaSript
- 如何用JS给视频文件播放地址赋值
日期:2014-05-16 浏览次数:20396 次
怎么用JS给视频文件播放地址赋值啊
1.avi格式
代码片断如下:
<object id= "video " width= "400 " height= "200 " border= "0 " classid= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA ">
<param name= "ShowDisplay " value= "0 ">
<param name= "ShowControls " value= "1 ">
<param name= "AutoStart " value= "1 ">
<param name= "AutoRewind " value= "0 ">
<param name= "PlayCount " value= "0 ">
<param name= "Appearance value= "0 value= " " ">
<param name= "BorderStyle value= "0 value= " " ">
<param name= "MovieWindowHeight " value= "240 ">
<param name= "MovieWindowWidth " value= "320 ">
<param name= "FileName " value= "/Mbar.avi ">
<embed width= "400 " height= "200 " border= "0 " showdisplay= "0 " showcontrols= "1 " autostart= "1 " autorewind= "0 " playcount= "0 " moviewindowheight= "240 " moviewindowwidth= "320 " filename= "/Mbar.avi " src= "Mbar.avi ">
</embed>
<OBJECT ID=video1 CLASSID= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA " HEIGHT=288 WIDTH=352>
<param name= "_ExtentX " value= "9313 ">
<param name= "_ExtentY " value= "7620 ">
<param name= "AUTOSTART " value= "0 ">
<param name= "SHUFFLE " value= "0 ">
<param name= "PREFETCH " value= "0 ">
<param name= "NOLABELS " value= "0 ">
<param name= "SRC " value= "rtsp://203.*.*.35/vod/dawan-a.rm ">
<param name= "CONTROLS " value= "ImageWindow ">
<param name= "CONSOLE " value= "Clip1 ">
<param name= "LOOP " value= "0 ">
<param name= "NUMLOOP " value= "0 ">
<param name= "CENTER " value= "0 ">
<param name= "MAINTAINASPECT " value= "0 ">
<param name= "BACKGROUNDCOLOR " value= "#000000 "> <embed SRC type= "audio/x-pn-realaudio-plugin " CONSOLE= "Clip1 " CONTROLS= "ImageWindow " HEIGHT= "288 " WIDTH= "352 " AUTOSTART= "false ">
</OBJECT>
<object id= "NSPlay " width=200 height=180 classid= "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 " codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 " standby= "Loading Microsoft Windows Media Player components... " type= "application/x-oleobject " align= "right " hspace= "5 ">
<param name= "AutoRewind " value=1>