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',
            '480',
            image:'image/1.jpg'
        });
    </script>
</body>
</html>

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

原文地址:https://www.cnblogs.com/Free-Wind/p/4698960.html