lingbing

jsp源码:

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP \'video.jsp\' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <link href="jsp/video/video-js/video-js.css" rel="stylesheet" type="text/css">
     <script src="jsp/video/video-js/video.js"></script>
     <script>
       videojs.options.flash.swf = "jsp/video/video-js/video-js.swf";
     </script>
  </head>
  <body>
      <video id="my_video_1" class="video-js vjs-default-skin" controls    preload="auto" width="640" height="480" poster="jsp/video/video-js/my_video_poster.png"    data-setup="{}">
         <source src="http://localhost:8080/ompa/uploads/file/aa.mp4" type=\'video/mp4\' />
         <!-- <source src="http://localhost:8080/ompa/uploads/file/bb.wmv" type=\'video/webm\' /> -->
      </video>
      <script>
        if (navigator.userAgent.indexOf(\'MSIE\') >= 0){
            document.getElementById("my_video_1").innerHTML=\'<embed src="http://localhost:8080/ompa/uploads/aa.mp4" autostart="true" loop="true" width="640" height="480" >\';
        }
     </script>
  </body>
</html>

video.js自己去网上下

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2021-10-17
  • 2021-10-16
  • 2022-01-07
  • 2021-06-01
  • 2021-10-15
  • 2021-09-29
  • 2021-10-13
猜你喜欢
  • 2021-09-17
  • 2021-10-31
  • 2021-07-22
  • 2021-07-24
  • 2021-10-14
  • 2021-10-29
相关资源
相似解决方案