')[0];
  this.paused = !this.started
  this.lastTime = null;
  this.lastReportedLoop = -1;
  this.lastProgressReport = 0;
  this.loops = 0;
  this.settingsOpen = false;
  document.body.addEventListener("keyup", this.onKeyPress.bind(this));

  this.setupMediaSession();

  var playPauseInput = this.playerDiv.getElementsByClassName('player-play-pause-button-input')[0]

  if (player.hasAttribute('autoplay')) {
    //force autoplay
    this.play();
  }

  if (userInteractionRequired()) {
    removeClass(playerDi