var setHideTimeout = function(duration) {
    duration = duration || 2000;
    activityTimeout = setTimeout(function() {
      if (self.settingsOpen || self.mouseOverControls) {
        setHideTimeout();
        return;
      }
      if (self.scrubTime != null) {
        return;
      }
      removeClass(playerDiv, "user-activity");
    }, duration)
  }
  var onUserActivity = function(e) {
    if (!self.started) {
      return
    }
    if (activityTimeout) {
      clearTimeout(activityTimeout);
    }
    a