http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12538/supported-player-embed-methods#upload
新建eclipse web项目,目录结构如下,将jwplayer.js 及jwplayer.swf及video分别放到目录下,按照jwplayer的实例写index.jsp,启动tomcat,即可访问到这个video,将index.jsp的代码黏贴如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
</head>
<body>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
var player = jwplayer("container");
player.setup({
flashplayer: "jwplayer/player.swf",
file: "videos/video.mp4",
height: 270,
width: 480
});
//player.play();
</script>
</body>
</html>