支持多浏览器与多系统的网络播放器代码

2012年08月11日

网络上很多播放器都只支持Windows系统和IE浏览器,这是我在网上找到的一段支持多系统和多浏览器的网络播放器代码,将代码复制到网页源码的指定位置即可,其中 ******************* 为你的链接文件址, width为播放器的宽度,height为播放器的高度,autostart为是否自动播放,值等于false或等于0时不自动播放,值等于True或等于1时自动播放.playCount为播放次数.我在Windows系统,IE9,Windows8系统,IE10,Windows XP IE8和Linux,Centos6.3+Firefox14.0.1下均可以正常播放.

<object id="MediaPlayer1" width="200" height="80" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="URL" value="*******************">
</param><param name="autoStart" value="false">
</param><param name="invokeURLs" value="false">
</param><param name="playCount" value="1">
</param><param name="defaultFrame" value="datawindow">
<embed src="*******************" align="baseline" border="0" width="200" height="80" type="application/x-mplayer2"pluginspage="" name="MediaPlayer1" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="0" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" defaultframe="datawindow" invokeurls="0"></embed></param></object>
<object id="MediaPlayer1" width="0" height="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"><param name="URL" value="*******************"></param><param name="autoStart" value="true"></param><param name="invokeURLs" value="false"></param><param name="playCount" value="1"></param><param name="defaultFrame" value="datawindow"><embed src="*******************" align="baseline" border="0" width="0" height="0" type="application/x-mplayer2"pluginspage="" name="MediaPlayer1" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="1" showdisplay="0" showstatusbar="1" autosize="0" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowscan="1" enablecontextmenu="1" clicktoplay="0" defaultframe="datawindow" invokeurls="0"></embed></param></object>

sicnature ---------------------------------------------------------------------
Your current IP address is: 54.198.134.127
Your IP address location: 美国
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 海南仙岛海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com.cn/post/734.html

没有评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注