1、flash播放器 swf
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="450"> <param name="allowScriptAccess" value="always"> <param name="movie" value="test4.swf"> <param name="allowFullScreen" value="true"></param> <param name="quality" value="high"> <param name="bgcolor" value="#ffffff"> <PARAM name="wmode" value="transparent"> <embed src="test4.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="550" height="400" allowScriptAccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
2、 flv 播放器(播放器见附件)
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400"> <param name="movie" value="Flvplayer.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="vcastr_file=http://www.***.com/123.flv&LogoText=www.***.com&BufferTime=3" /> <embed src="Flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=http://www.***.com/123.flv&LogoText=www.***.com" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="400"></embed> </object>
说明:
500 :播放器的宽度。
400:播放器的高度。
Flvplayer.swf :播放器文件,必须的。
http://www.***.com/123.flv :flv文件地址。
www.***.com :播放器顶部标志,可缺省。
Flvplayer.swf 这是FLV播放器,也就是上面下载的播放文件,很重要,路径一定要对,否则播放错误,可以放其他目录,如果放在 img目录就是:img/Flvplayer.swf ,前面不带“/”。
3、 wmv 播放器
<object id="player" height="600" width="450" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <param NAME="AutoStart" VALUE="-1"> <!--是否自动播放--> <param NAME="Balance" VALUE="0"> <!--调整左右声道平衡,同上面旧播放器代码--> <param name="enabled" value="-1"> <!--播放器是否可人为控制--> <param NAME="EnableContextMenu" VALUE="-1"> <!--是否启用上下文菜单--> <param NAME="url" VALUE="/sermon/cha21.wmv" target="_blank"> <!--播放的文件地址--> <param NAME="PlayCount" VALUE="1"> <!--播放次数控制,为整数--> <param name="rate" value="1"> <!--播放速率控制,1为正常,允许小数,1.0-2.0--> <param name="currentPosition" value="0"> <!--控件设置:当前位置--> <param name="currentMarker" value="0"> <!--控件设置:当前标记--> <param name="defaultFrame" value=""> <!--显示默认框架--> <param name="invokeURLs" value="0"> <!--脚本命令设置:是否调用URL--> <param name="baseURL" value=""> <!--脚本命令设置:被调用的URL--> <param name="stretchToFit" value="1"> <!--是否按比例伸展--> <param name="volume" value="50"> <!--默认声音大小0%-100%,50则为50%--> <param name="mute" value="0"> <!--是否静音--> <param name="uiMode" value="full"> <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示--> <param name="windowlessVideo" value="0"> <!--如果是0可以允许全屏,否则只能在窗口中查看--> <param name="fullScreen" value="0"> <!--开始播放是否自动全屏--> <param name="enableErrorDialogs" value="-1"> <!--是否启用错误提示报告--> <param name="SAMIStyle" value> <!--SAMI样式--> <param name="SAMILang" value> <!--SAMI语言--> <param name="SAMIFilename" value> <!--字幕ID--> <embed src="/sermon/cha21.wmv" allowfullscreen="true" quality="high" type="application/x-shockwave-flash" width="600" height="450"></embed> </object>
4、1bit播放器
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>1 Bit Audio Player</title> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript" src="1bit.js"></script> <script type="text/javascript"> oneBit = new OneBit('1bit.swf'); oneBit.ready(function() { // Using specify you can set 'color', 'background', 'playerSize', 'position' and 'analytics' - all are optional oneBit.specify('color', '#CC0000'); // Apply is called after options are specified and includes the CSS selector oneBit.apply('a'); }); </script> <style type="text/css"> .onebit_mp3 a { color: #CC0000; } </style> </head> <body> <div> <p>This <a href="test.mp3">example</a> will only play if you have an MP3 called 'test.mp3' in the same directory.</p> </div> </body> </html>
文档参见 http://1bit.markwheeler.net
5. mp4
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="860" HEIGHT="289" > <param NAME="src" VALUE="video.mp4" > <param NAME="autoplay" VALUE="true" > <param NAME="controller" value="false"> <embed SRC="video.mp4" TYPE="image/x-macpaint" PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="860" HEIGHT="289" AUTOPLAY="true" CONTROLLER="false"></embed> </object>