ion(e) {
      if (e.target.checked) {
        player.pause();
      } else {
        player.play();
      }
    }

    var muteButton = playerDiv.getElementsByClassName('player-mute-button')[0];
    if (muteButton) {
      muteButton.onmousedown = function(e) {
        hideSettings();
        if (player.muted) {
          player.muted = false;
        } else {
          player.muted = true;
        }
        e.stopPropagation();
      }
    }

    var wasPaused;
    var handleMouseMove = function(e) {
    