title: How to write error message object of videoJS on server
body: <p>I am using videojs for my video play. I want to log error message on the server. In browser console i am able to get the message , but i am not getting the error object which i can send to the server . Need assistance . test code will be highly helpful . </p>
  
  <pre><code> player=videojs("myvideo", { "controls": true,  "techOrder": ["html5", "flash"]}, function(){
      console.log("here");
  
  
      var err =this.on('error', function(e){
      console.log("Error n caught" +this.error());
      console.log(this.error());  // Is not printing anything
  
  
  
  });
  
  });
  </code></pre>