你正在查看: 首页 > 技术文章>html > 在线播放器代码大全

在线播放器代码大全

在线 1.avi格式

<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<paramname="ShowDisplay"value="0">
<paramname="ShowControls"value="1">
<paramname="AutoStart"value="1">
<paramname="AutoRewind"value="0">
<paramname="PlayCount"value="0">
<paramname="Appearancevalue="0value=""">
<paramname="BorderStylevalue="0value=""">
<paramname="MovieWindowHeight"value="240">
<paramname="MovieWindowWidth"value="320">
<paramname="FileName"value="file:///D|/work/vod/Mbar.avi">
<embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"autorewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="file:///D|/work/vod/Mbar.avi"src="Mbar.avi">
</embed>
</object>

2.mpg格式

<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width="239"height="250">
<paramname="Appearance"value="0">
<paramname="AutoStart"value="-1">
<paramname="AllowChangeDisplayMode"value="-1">
<paramname="AllowHideDisplay"value="0">
<paramname="AllowHideControls"value="-1">
<paramname="AutoRewind"value="-1">
<paramname="Balance"value="0">
<paramname="CurrentPosition"value="0">
<paramname="DisplayBackColor"value="0">
<paramname="DisplayForeColor"value="16777215">
<paramname="DisplayMode"value="0">
<paramname="Enabled"value="-1">
<paramname="EnableContextMenu"value="-1">
<paramname="EnablePositionControls"value="-1">
<paramname="EnableSelectionControls"value="0">
<paramname="EnableTracker"value="-1">
<paramname="Filename"value="../../../mpeg/halali.mpg"valuetype="ref">
<paramname="FullScreenMode"value="0">
<paramname="MovieWindowSize"value="0">
<paramname="PlayCount"value="1">
<paramname="Rate"value="1">
<paramname="SelectionStart"value="-1">
<paramname="SelectionEnd"value="-1">
<paramname="ShowControls"value="-1">
<paramname="ShowDisplay"value="-1">
<paramname="ShowPositionControls"value="0">
<paramname="ShowTracker"value="-1">
<paramname="Volume"value="-480">
</object>


3.rm格式

<OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGHT=288WIDTH=352>

<paramname="_ExtentX"value="9313">
<paramname="_ExtentY"value="7620">
<paramname="AUTOSTART"value="0">
<paramname="SHUFFLE"value="0">
<paramname="PREFETCH"value="0">
<paramname="NOLABELS"value="0">
<paramname="SRC"value="rtsp://203.207.131.35/vod/dawan-a.rm";>
<paramname="CONTROLS"value="ImageWindow">
<paramname="CONSOLE"value="Clip1">
<paramname="LOOP"value="0">
<paramname="NUMLOOP"value="0">
<paramname="CENTER"value="0">
<paramname="MAINTAINASPECT"value="0">
<paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-realaudio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"AUTOSTART="false">

</OBJECT>

4.wmv格式

<objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents..."type="application/x-oleobject"align="right"hspace="5">
<!--ASXFileName-->
<paramname="AutoRewind"value=1>
<paramname="FileName"value="xxxxxx.wmv">
<!--DisplayControls-->

<paramname="ShowControls"value="1">
<!--DisplayPositionControls-->

<paramname="ShowPositionControls"value="0">
<!--DisplayAudioControls-->

<paramname="ShowAudioControls"value="1">
<!--DisplayTrackerControls-->

<paramname="ShowTracker"value="0">
<!--ShowDisplay-->

<paramname="ShowDisplay"value="0">
<!--DisplayStatusBar-->

<paramname="ShowStatusBar"value="0">
<!--DiplayGoToBar-->

<paramname="ShowGotoBar"value="0">
<!--DisplayControls-->

<paramname="ShowCaptioning"value="0">
<!--PlayerAutostart-->

<paramname="AutoStart"value=1>
<!--AnimationatStart-->

<paramname="Volume"value="-2500">
<paramname="AnimationAtStart"value="0">
<!--TransparentatStart-->

<paramname="TransparentAtStart"value="0">
<!--Donotallowachangeindisplaysize-->

<paramname="AllowChangeDisplaySize"value="0">
<!--Donotallowscanning-->

<paramname="AllowScan"value="0">
<!--Donotshowcontectmenuonrightmouseclick-->

<paramname="EnableContextMenu"value="0">
<!--Donotallowplaybacktogglingonmouseclick-->
<paramname="ClickToPlay"value="0">
</object>

最简单的播放代码

<embedsrc="http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv";;
autostart="true"loop="true"width="200"height="150">
把这个网址http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv换成你要看的电影就行了


有图像的rm格式:

<OBJECTclassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAheight=288id=video1width=305VIEWASTEXT>
<paramname=_ExtentXvalue=5503>
<paramname=_ExtentYvalue=1588>
<paramname=AUTOSTARTvalue=-1>
<paramname=SHUFFLEvalue=0>
<paramname=PREFETCHvalue=0>
<paramname=NOLABELSvalue=0>
<paramname=SRCvalue=http://media.cdut.edu.cn/ram/new/xiaoxin1.ram>
<paramname=CONTROLSvalue=Imagewindow,StatusBar,ControlPanel>
<paramname=CONSOLEvalue=RAPLAYER>
<paramname=LOOPvalue=0>
<paramname=NUMLOOPvalue=0>
<paramname=CENTERvalue=0>
<paramname=MAINTAINASPECTvalue=0>
<paramname=BACKGROUNDCOLORvalue=#000000>
</OBJECT>

无图像的rm格式:如相声,歌曲。。。

<objectID=video2WIDTH=300HEIGHT=62CLASSID=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA>
<paramname=_ExtentXvalue=9657>
<paramname=_ExtentYvalue=847>
<paramname=AUTOSTARTvalue=-1>
<paramname=SHUFFLEvalue=0>
<paramname=PREFETCHvalue=0>
<paramname=NOLABELSvalue=0>
<paramname=SRCvalue=http://210.242.69.206/ramgen/broadcast/BCC/encoder/hipop.rm>
<paramname=CONTROLSvalue=StatusBar,controlpanel>
<paramname=CONSOLEvalue=Clip1>
<paramname=LOOPvalue=0>
<paramname=NUMLOOPvalue=0>
<paramname=CENTERvalue=0>
<paramname=MAINTAINASPECTvalue=0>
<paramname=BACKGROUNDCOLORvalue=#000000>
</object>
最简单的media格式的播放器。。自动识别有无图像,但是版本是你机器的!
<embedsrc=mms://61.175.132.221/tv/mtv/f4/makeawish.wmvwidth=200height=200autostart=trueloop=true></embed>
有图像的media播放器,自动调用网上的插件。
<objectid=nstvclassid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6width=280height=265codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=LoadingMicrosoft?WindowsMedia?Playercomponents...type=application/x-oleobject>
<paramname=URLvalue=http://202.99.11.42/xiangsheng/ymjr.wma>
<PARAMNAME=UIModevalue=full><PARAMNAME=AutoStartvalue=true>
<PARAMNAME=Enabledvalue=true>
<PARAMNAME=enableContextMenuvalue=false>
<paramname=WindowlessVideovalue=true></object>
无图像的media播放器。。。同上。
<objectid=nstvclassid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6width=280height=60codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=LoadingMicrosoft?WindowsMedia?Playercomponents...type=application/x-oleobject>
<paramname=URLvalue=http://202.99.11.42/xiangsheng/ymjr.wma>
<PARAMNAME=UIModevalue=full><PARAMNAME=AutoStartvalue=true>
<PARAMNAME=Enabledvalue=true>
<PARAMNAME=enableContextMenuvalue=false>
</object>
只是界面不同的media的调插件播放器。。建议不用这个,,你可以看!
<embedsrc=http://av.wanwa.com/fileroot/AV/Ramfiles/23809.ramtype=audio/x-pn-realaudio-pluginconsole=Clip1controls=ControlPanel,StatusBarheight=60width=275autostart=true></embed>


在线播放rm格式视频代码:

<objectid="player"name="player"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"width="400"height="272">
<paramname="_ExtentX"value="18415">
<paramname="_ExtentY"value="9102">
<paramname="AUTOSTART"value="-1">
<paramname="SHUFFLE"value="0">
<paramname="PREFETCH"value="0">
<paramname="NOLABELS"value="-1">
<paramname="SRC"value="http://www.xiaoqiong.com/ftp/up/bz.rm">
<paramname="CONTROLS"value="Imagewindow">
<paramname="CONSOLE"value="clip1">
<paramname="LOOP"value="0">
<paramname="NUMLOOP"value="0">
<paramname="CENTER"value="0">
<paramname="MAINTAINASPECT"value="0">
<paramname="BACKGROUNDCOLOR"value="#000000">
</object><br>
<objectID="RP2"CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"WIDTH="400"HEIGHT="57">
<paramname="_ExtentX"value="18415">
<paramname="_ExtentY"value="1005">
<paramname="AUTOSTART"value="-1">
<paramname="SHUFFLE"value="0">
<paramname="PREFETCH"value="0">
<paramname="NOLABELS"value="-1">
<paramname="SRC"value="http://www.xiaoqiong.com/ftp/up/bz.rm">
<PARAMNAME="CONTROLS"VALUE="ControlPanel,StatusBar">
<paramname="CONSOLE"value="clip1">
<paramname="LOOP"value="0">
<paramname="NUMLOOP"value="0">
<paramname="CENTER"value="0">
<paramname="MAINTAINASPECT"value="0">
<paramname="BACKGROUNDCOLOR"value="#000000">
</object>


客服 反馈