0

I have the next test code, and I got the next error message

Uncaught SyntaxError: Unexpected token ILLEGAL

After that I got the next error message too

Uncaught ReferenceError: jwplayer is not defined

I've downloaded jwplayer from my account on the JWPlayer page. What am I doing wrong?

<!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>
Ismael Moral
  • 722
  • 1
  • 9
  • 35

1 Answers1

1

Looks like you spelled width wrong.

Elon Zito
  • 2,872
  • 1
  • 24
  • 28