 e.preventDefault();
        }
        qualityOptions[i].onclick = function(e) {
          e.stopPropagation();
          e.preventDefault();
          for (var i2 = 0; i2 < qualityOptions.length; i2++) {
            removeClass(qualityOptions[i2], "checked");
          }
          addClass(e.target, "checked");
          var currentTime = self.player.currentTime;

          var preset = e.target.getAttribute("data-quality")
          self.player.src = files[preset].url
          self.player.currentTime = c