Korzystam z odtwarzacza video.js Chce zbudować własne kontrolki na divach, próbuje wywołać funkcje z dokumentacji w onClick ale to nie działa. Co robię źle? Z góry dzięki za wyjaśnienia! nerdsmiley.png

Kod
<!DOCTYPE html>
<html>
<head>
  <title>Video.js | HTML5 Video Player</title>

  <!-- Chang URLs to wherever Video.js files will be hosted -->
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="video.js"></script>

  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>


</head>
<body>

  <video id="myPlayer" class="video-js vjs-default-skin" controls preload="auto" autoplay="true" width="1280px" height="692px"
      data-setup="{}">
    <source src="ntg.mp4" type='video/mp4' />

    <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
  </video>
  
  <div style="width:100px; height:50px; background-color:red; cursor:pointer;" onClick="myPlayer.pause();">TEST</div>

</body>
</html>