title: Control Netflix player using JavaScript
body: <p>I would like to make a Chrome extension that is able to control the Netflix player. </p>
  
  <p>The current Netflix player is written in HTML5 as far as I can tell, so I was wondering if there is a way to control the player, e.g. play, pause, volume control and changing the position of the video.</p>
  
  <p>I've tried using this to control the playing and pausing functions and it works.</p>
  
  <pre><code>document.getElementsByClassName("player-control-button player-play-pause")[0].click();
  </code></pre>
  
  <p>I've also tried using but then I just get an error saying that <code>videoPlayer()</code> isn't a function</p>
  
  <pre><code>netflix.cadmium.objects.videoPlayer();
  </code></pre>
  
  <p>Is there something similar I can do to change the volume and the position of the video?</p>
  
  <p>Thanks!</p>