`
cy729215495
  • 浏览: 129520 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

百度影音播放器代码,兼容ie和火狐,chrome

 
阅读更多
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> New Document </title>
  <meta http-equiv=Content-Type content="text/html;charset=utf-8">
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>

 <body>

<!--ie浏览器支持播放-->

<object classid="clsid:02E2D748-67F8-48B4-8AB4-0A085374BB99" width="500" height="400" id="BaiduPlayer" name="BaiduPlayer" onError=if(window.confirm('请您先安装百度影音软件,然后刷新本页才可以正常播放.')){window.open('http://player.baidu.com')}else{self.location='http://player.baidu.com'}>
<PARAM NAME='URL' VALUE='ftp://bb:aa@192.168.1.109:21/video/1.mp4'>
<PARAM NAME='Autoplay' VALUE='1'>
</object> 
<!--非ie浏览器
<object id="BaiduPlayer" name="BaiduPlayer" type="application/player-activex" width="700" height="550" progid="Xbdyy.PlayCtrl.1" 
param_url="ftp://aa:bb@192.168.1.109:21/video/1.3gp"  onError=if(window.confirm('请您先安装百度影音软件,然后刷新本页才可以正常播放.')){window.open('http://player.baidu.com')}else{self.location='http://player.baidu.com'}  param_nextcacheurl="bdhd://258153089|948E0EB38A2DFA1AF7D1B488E86AFFDD|还珠格格之燕儿翩翩飞02.HDTV.rmvb" param_lastwebpage="http://player.baidu.com/lib/eg.html?1" param_nextwebpage="http://player.baidu.com/lib/eg.html?2" param_onplay="onPlay" param_onpause="onPause" param_onfirstbufferingstart="onFirstBufferingStart" param_onfirstbufferingend="onFirstBufferingEnd" param_onplaybufferingstart="onPlayBufferingStart" param_onplaybufferingend="onPlayBufferingEnd" param_oncomplete="onComplete" param_autoplay="1" param_showstartclient="1"></object> -->


 </body>
</html>

  ps:我这里的  视频播放器的地址是个ftp的url,可以用其他的,都行

分享到:
评论
1 楼 zealyo_xiao 2015-02-03  
哥们,你是给百度影音打广告的?  一直执行的是onError代码,安装了也是。

相关推荐

Global site tag (gtag.js) - Google Analytics