兼容ie8的html avi播放器

可以在ie8下播放avi等主流视频,需要插件: media.player.codec.pack.v4.3.8.setup.exe


点击(此处)折叠或打开

  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>


  6. <%
  7. String webPath=request.getContextPath();
  8.     String swfFilePath=session.getAttribute("swfpath").toString();
  9.     System.out.println("swfFilePath:"+swfFilePath);
  10. %>


  11. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12. <title>~视频文档预览页面~</title>


  13. <!--超链接样式--&gt
  14. <style type="text/css">
  15. td {
  16. font-size: 12px;
  17. font-family: 宋体;
  18. }


  19. a {
  20. font-family: "宋体";
  21. font-size: 9pt;
  22. text-decoration: none
  23. }


  24. .t1 {
  25. color: #CC0000;
  26. text-decoration: underline
  27. }
  28. </style>


  29. </head>
  30. <body
  31. style="background-image: url(img/3.jpg); background-position: center; background-repeat: repeat-y">


  32. <a href="./jieMaQi/media.player.codec.pack.v4.3.8.setup.exe" class="t1"
  33. target="_blank">如视频不能播放,点击下载解码器</a>


  34. <p style="text-align: center;"><object id="MediaPlayer"
  35. classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="800"
  36. height="600" standby="Loading Windows Media Player components…"
  37. type="application/x-oleobject"
  38. codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
  39. <param name="FileName" value="视频地址">
  40. <param name="AutoStart" value="true">
  41. <param name="ShowControls" value="true">
  42. <param name="BufferingTime" value="2">
  43. <param name="ShowStatusBar" value="true">
  44. <param name="AutoSize" value="true">
  45. <param name="InvokeURLs" value="false">
  46. <param name="AnimationatStart" value="1">
  47. <param name="TransparentatStart" value="1">
  48. <param name="Loop" value="1">
  49. <embed type="application/x-mplayer2" src="<%=swfFilePath %>"
  50. name="MediaPlayer" autostart="1" showstatusbar="1" showdisplay="1"
  51. showcontrols="1" loop="0" videoborder3d="0"
  52. pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
  53. width="800" height="600"></embed> </object> </object></p>


  54. </body>
  55. </html>


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25130668/viewspace-1778311/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25130668/viewspace-1778311/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值