title: Dash.js - Trapping 404 errors from MPEG-DASH player
body: <p>I've using the Dash.js player to play MPEG-DASH videos.  The videos are pulled from a server.  Every now and then there will be 404 errors due to server issues, I would like to retry the stream in the background by detecting the 404 error and acting accordingly.</p>
  
  <p>The problem is I cannot catch the error, it's thrown from the line</p>
  
  <pre><code>req.send();
  </code></pre>
  
  <p>Which is in a file called FragmentLoader.js.</p>
  
  <p>I've tried the following error handling:</p>
  
  <pre><code>window.addEventListener('error', function(e) {
      console.log("Item: " + e.message);
  }, true);
  
  var oReq = new XMLHttpRequest();
  oReq.addEventListener("error", function (e) {
      console.log("xml item: " + e.message);
  }, true);
  
  
  $(document).ajaxError(function (event, xhr, ajaxOptions, errorThrown) {
      alert("ajax erorr");
  });
  </code></pre>
  
  <p>However none of these conditions catch the error. Is there any way to catch these errors thrown from the dash.js player?</p>