video.jsp 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ page session="true" %>
  4. <%
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. String baseUrl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
  8. String videoId = request.getParameter("videoId");
  9. String t = String.valueOf(System.currentTimeMillis());
  10. %>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  12. <html>
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <link type="text/css" rel="stylesheet" href="<%=basePath+"res/videojs/css/video-js.css" %>"/>
  17. <script type="text/javascript" src ="<%=basePath+"res/jquery/jquery-3.3.1.min.js" %>"></script>
  18. <script type="text/javascript" src ="<%=basePath+"res/videojs/js/video.js" %>"></script>
  19. <script type="text/javascript" src ="<%=basePath+"res/videojs/js/videojs-ie8.min.js" %>"></script>
  20. <script type="text/javascript" src ="<%=basePath+"view/frontpage/scripts/myVideo.js" %>"></script>
  21. <title>视频监控</title>
  22. </head>
  23. <body style="overflow:hidden;"onload="myload()">
  24. <video id="my-video" style="color:black;width:320px;height:240px" class="video-js" autoplay controls preload="auto" width="100%" height="100%" data-setup="{}">
  25. </video>
  26. <embed id="openFlash" width="300" height="70" class="openFlash" style="position:absolute;top:130px;left:225px;z-Index:9999;" type="application/x-shockwave-flash">
  27. <input type="hidden" id="basePath" name="basePath" value="<%=basePath %>"/>
  28. <input type="hidden" id="videoId" name="videoId" value="<%=videoId %>"/>
  29. </body>
  30. </html>