JWPlayer第一个例子

<%@ 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>JW Player研究</title>
<script type="text/javascript" src="jwplayer/jwplayer.js">
</script> </head>
<body>
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<div id="container">loading the palyer...</div>
<script type="text/javascript">
var playerInstance = jwplayer('container');
jwplayer.key="XXXXXXXXXXXXXXX";
playerInstance.setup({
flashplayer: 'jwplayer/jwplayer.flash.swf',
file:'video/video4.mp4',
height:'690',
width:'480',
image:'image/1.jpg'
});
</script>
</body>
</html>

注意:如果发现有License Key的错误提示或者missing信息,说明你的key写错了. 在官网下载JWPlayer压缩包的位置,就可以看见你的key

上一篇:jQuery Growl插件(消息提醒)


下一篇:XSS学习笔记(一个)-点击劫持