天山云海综合社区

 找回密码
 注册
淘宝充值
搜索
查看: 2311|回复: 0

在线播放器代码大全

[复制链接]
tianshanyunhai 发表于 2005-5-29 11:32:23 | 显示全部楼层 |阅读模式
前言:
1.avi格式
2.mpg格式
...

正文:
1.avi格式

  1. <object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
  2. <param name="ShowDisplay" value="0">
  3. <param name="ShowControls" value="1">
  4. <param name="AutoStart" value="1">
  5. <param name="AutoRewind" value="0">
  6. <param name="PlayCount" value="0">
  7. <param name="Appearance value="0 value=""">
  8. <param name="BorderStyle value="0 value=""">
  9. <param name="MovieWindowHeight" value="240">
  10. <param name="MovieWindowWidth" value="320">
  11. <param name="FileName" value="file:///D|/work/vod/Mbar.avi">
  12. <embed width="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">
  13. </embed>
  14. </object>
复制代码


2.mpg格式
  1. <object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width="239" height="250">
  2. <param name="Appearance" value="0">
  3. <param name="AutoStart" value="-1">
  4. <param name="AllowChangeDisplayMode" value="-1">
  5. <param name="AllowHideDisplay" value="0">
  6. <param name="AllowHideControls" value="-1">
  7. <param name="AutoRewind" value="-1">
  8. <param name="Balance" value="0">
  9. <param name="CurrentPosition" value="0">
  10. <param name="DisplayBackColor" value="0">
  11. <param name="DisplayForeColor" value="16777215">
  12. <param name="DisplayMode" value="0">
  13. <param name="Enabled" value="-1">
  14. <param name="EnableContextMenu" value="-1">
  15. <param name="EnablePositionControls" value="-1">
  16. <param name="EnableSelectionControls" value="0">
  17. <param name="EnableTracker" value="-1">
  18. <param name="Filename" value="../../../mpeg/halali.mpg" valuetype="ref">
  19. <param name="FullScreenMode" value="0">
  20. <param name="MovieWindowSize" value="0">
  21. <param name="PlayCount" value="1">
  22. <param name="Rate" value="1">
  23. <param name="SelectionStart" value="-1">
  24. <param name="SelectionEnd" value="-1">
  25. <param name="ShowControls" value="-1">
  26. <param name="ShowDisplay" value="-1">
  27. <param name="ShowPositionControls" value="0">
  28. <param name="ShowTracker" value="-1">
  29. <param name="Volume" value="-480">
  30. </object>
复制代码


3.rm格式

  1. <OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=288 WIDTH=352>

  2. <param name="_ExtentX" value="9313">
  3. <param name="_ExtentY" value="7620">
  4. <param name="AUTOSTART" value="0">
  5. <param name="SHUFFLE" value="0">
  6. <param name="PREFETCH" value="0">
  7. <param name="NOLABELS" value="0">
  8. <param name="SRC" value="rtsp://203.207.131.35/vod/dawan-a.rm";>
  9. <param name="CONTROLS" value="ImageWindow">
  10. <param name="CONSOLE" value="Clip1">
  11. <param name="LOOP" value="0">
  12. <param name="NUMLOOP" value="0">
  13. <param name="CENTER" value="0">
  14. <param name="MAINTAINASPECT" value="0">
  15. <param name="BACKGROUNDCOLOR" value="#000000"><embed SRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" HEIGHT="288" WIDTH="352" AUTOSTART="false">

  16. </OBJECT>
复制代码

4.wmv格式

  1. <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">
  2. <!-- ASX File Name -->
  3. <param name="AutoRewind" value=1>
  4. <param name="FileName" value="xxxxxx.wmv">
  5. <!-- Display Controls -->

  6. <param name="ShowControls" value="1">
  7. <!-- Display Position Controls -->

  8. <param name="ShowPositionControls" value="0">
  9. <!-- Display Audio Controls -->

  10. <param name="ShowAudioControls" value="1">
  11. <!-- Display Tracker Controls -->

  12. <param name="ShowTracker" value="0">
  13. <!-- Show Display -->

  14. <param name="ShowDisplay" value="0">
  15. <!-- Display Status Bar -->

  16. <param name="ShowStatusBar" value="0">
  17. <!-- Diplay Go To Bar -->

  18. <param name="ShowGotoBar" value="0">
  19. <!-- Display Controls -->

  20. <param name="ShowCaptioning" value="0">
  21. <!-- Player Autostart -->

  22. <param name="AutoStart" value=1>
  23. <!-- Animation at Start -->

  24. <param name="Volume" value="-2500">
  25. <param name="AnimationAtStart" value="0">
  26. <!-- Transparent at Start -->

  27. <param name="TransparentAtStart" value="0">
  28. <!-- Do not allow a change in display size -->

  29. <param name="AllowChangeDisplaySize" value="0">
  30. <!-- Do not allow scanning -->

  31. <param name="AllowScan" value="0">
  32. <!-- Do not show contect menu on right mouse click -->

  33. <param name="EnableContextMenu" value="0">
  34. <!-- Do not allow playback toggling on mouse click -->
  35. <param name="ClickToPlay" value="0">
  36. </object>
复制代码

最简单的播放代码

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


有图像的rm格式:

  1. <OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=288 id=video1 width=305 VIEWASTEXT>
  2. <param name=_ExtentX value=5503>
  3. <param name=_ExtentY value=1588>
  4. <param name=AUTOSTART value=-1>
  5. <param name=SHUFFLE value=0>
  6. <param name=PREFETCH value=0>
  7. <param name=NOLABELS value=0>
  8. <param name=SRC value=http://media.cdut.edu.cn/ram/new/xiaoxin1.ram>
  9. <param name=CONTROLS value=Imagewindow,StatusBar,ControlPanel>
  10. <param name=CONSOLE value=RAPLAYER>
  11. <param name=LOOP value=0>
  12. <param name=NUMLOOP value=0>
  13. <param name=CENTER value=0>
  14. <param name=MAINTAINASPECT value=0>
  15. <param name=BACKGROUNDCOLOR value=#000000>
  16. </OBJECT>
复制代码

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

  1. <object ID=video2 WIDTH=300 HEIGHT=62 CLASSID=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA>
  2. <param name=_ExtentX value=9657>
  3. <param name=_ExtentY value=847>
  4. <param name=AUTOSTART value=-1>
  5. <param name=SHUFFLE value=0>
  6. <param name=PREFETCH value=0>
  7. <param name=NOLABELS value=0>
  8. <param name=SRC value=http://210.242.69.206/ramgen/broadcast/BCC/encoder/hipop.rm>
  9. <param name=CONTROLS value=StatusBar,controlpanel>
  10. <param name=CONSOLE value=Clip1>
  11. <param name=LOOP value=0>
  12. <param name=NUMLOOP value=0>
  13. <param name=CENTER value=0>
  14. <param name=MAINTAINASPECT value=0>
  15. <param name=BACKGROUNDCOLOR value=#000000>
  16. </object>
复制代码

最简单的media格式的播放器。。自动识别有无图像,但是版本是你机器的!
  1. w<embed src=mms://61.175.132.221/tv/mtv/f4/makeawish.wmv width=200 height=200 autostart=true loop=true></embed>
复制代码

有图像的media播放器,自动调用网上的插件。

  1. <object id=nstv classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width=280 height=265 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
  2. <param name=URL value=http://202.99.11.42/xiangsheng/ymjr.wma>
  3. <PARAM NAME=UIMode value=full><PARAM NAME=AutoStart value=true>
  4. <PARAM NAME=Enabled value=true>
  5. <PARAM NAME=enableContextMenu value=false>
  6. <param name=WindowlessVideo value=true></object>
复制代码

无图像的media播放器。。。同上。

  1. <object id=nstv classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width=280 height=60 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>
  2. <param name=URL value=http://202.99.11.42/xiangsheng/ymjr.wma>
  3. <PARAM NAME=UIMode value=full><PARAM NAME=AutoStart value=true>
  4. <PARAM NAME=Enabled value=true>
  5. <PARAM NAME=enableContextMenu value=false>
  6. </object>
复制代码

只是界面不同的media的调插件播放器。。建议不用这个,,你可以看!

  1. <embed src=http://av.wanwa.com/fileroot/AV/Ramfiles/23809.ram type=audio/x-pn-realaudio-plugin console=Clip1 controls=ControlPanel,StatusBar height=60 width=275 autostart=true></embed>
复制代码


在线播放r m格式视频代码:

  1. <object id="player" name="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="400" height="272">
  2. <param name="_ExtentX" value="18415">
  3. <param name="_ExtentY" value="9102">
  4. <param name="AUTOSTART" value="-1">
  5. <param name="SHUFFLE" value="0">
  6. <param name="PREFETCH" value="0">
  7. <param name="NOLABELS" value="-1">
  8. <param name="SRC" value="http://www.xiaoqiong.com/ftp/up/bz.rm">
  9. <param name="CONTROLS" value="Imagewindow">
  10. <param name="CONSOLE" value="clip1">
  11. <param name="LOOP" value="0">
  12. <param name="NUMLOOP" value="0">
  13. <param name="CENTER" value="0">
  14. <param name="MAINTAINASPECT" value="0">
  15. <param name="BACKGROUNDCOLOR" value="#000000">
  16. </object><br>
  17. <object ID="RP2" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="400" HEIGHT="57">
  18. <param name="_ExtentX" value="18415">
  19. <param name="_ExtentY" value="1005">
  20. <param name="AUTOSTART" value="-1">
  21. <param name="SHUFFLE" value="0">
  22. <param name="PREFETCH" value="0">
  23. <param name="NOLABELS" value="-1">
  24. <param name="SRC" value="http://www.xiaoqiong.com/ftp/up/bz.rm">
  25. <PARAM NAME="CONTROLS" VALUE="ControlPanel,StatusBar">
  26. <param name="CONSOLE" value="clip1">
  27. <param name="LOOP" value="0">
  28. <param name="NUMLOOP" value="0">
  29. <param name="CENTER" value="0">
  30. <param name="MAINTAINASPECT" value="0">
  31. <param name="BACKGROUNDCOLOR" value="#000000">
  32. </object>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|天山云海

GMT+8, 2024-11-21 23:46 , Processed in 0.012027 second(s), 5 queries , APCu On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表