码迷,mamicode.com
首页 > 其他好文 > 详细

JWPlayer第一个例子

时间:2015-08-03 12:56:09      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

<%@ 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

JWPlayer第一个例子

标签:

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

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!