<%@ 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%>">
|
<meta name="viewport" charset="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>Video.js | HTML5 Video Player</title>
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
|
<!-- Chang URLs to wherever Video.js files will be hosted -->
|
<link href="static/plugins/video/video-js.css" rel="stylesheet" type="text/css">
|
<!-- video.js must be in the <head> for older IEs to work. -->
|
<script src="static/plugins/video/video.js"></script>
|
|
<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
|
<script>
|
videojs.options.flash.swf = "<%=basePath%>/static/plugins/video/video-js.swf";
|
</script>
|
|
|
</head>
|
<body>
|
<video id="video" class="video-js vjs-default-skin" controls preload="none" autoplay="true" isFullscreen="true"
|
data-setup="{}">
|
<source src="general/${attachViewUrl}" type='video/mp4'/>
|
<!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
|
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> -->
|
<!-- <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track> -->
|
<!-- Tracks need an ending tag thanks to IE9 -->
|
<!-- <track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"></track> -->
|
<!-- Tracks need an ending tag thanks to IE9 -->
|
</video>
|
<script>
|
$(function () {
|
resizeWin();
|
|
$(window).resize(function () {
|
resizeWin();
|
})
|
});
|
|
function resizeWin() {
|
var $video = $("#video");
|
if ($video.length > 0) {
|
var ww = $(window).width();
|
var wh = $(window).height();
|
$video.attr("width", ww - 18);
|
$video.attr("height", wh - 18);
|
}
|
}
|
</script>
|
</body>
|
</html>
|