ITPub博客

首页 > 应用开发 > IT综合 > 兼容ie8的html avi播放器

兼容ie8的html avi播放器

原创 IT综合 作者:zkjbill 时间:2015-08-21 10:30:50 0 删除 编辑
可以在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. <!--超链接样式-->
  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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-07-27

  • 博文量
    21
  • 访问量
    18092