JWPlayer意外令牌非法

时间:2016-01-28 12:02:57

标签: javascript jwplayer

我有下一个测试代码,我收到了下一条错误消息

Uncaught SyntaxError: Unexpected token ILLEGAL

之后我也收到了下一条错误消息

Uncaught ReferenceError: jwplayer is not defined

我在JWPlayer页面上从我的帐户下载了jwplayer。我做错了什么?

<!doctype html>
<html>
  <head>
    <script src='//code.jquery.com/jquery-2.2.0.min.js' type='text/javascript' ></script>
    <script src='./player/jwplayer.js' type='text/javascript' ></script>
  </head>
  <body>
    <div id='target'>
    </div>

    <script language='JavaScript'>
      var playerInstance = jwplayer('target').setup({
        file:           './videos/jaguar.mp4',
        flashPlayer:    './player/jwplayer.flash.swf',
        widht:          600,
        height:         300,
        image:          './images/jaguar.jpg'
      });
    </script>
  </body>
</html>

0 个答案:

没有答案