}).catch(function(err) {
            console.log("Play blocked: " + err)
          });
        }
      }
    }

    var progressBar = playerDiv.getElementsByClassName('player-progress')[0]
    var progressBarHover = document.getElementById('player-progress-hover')
    var progressBarTrackHover = document.getElementById('player-progress-value-hover')
    progressBar.onmousedown = function(e)  {
      hideSettings();
      wasPaused = player.paused;
      document.addEventListener("mousemove", handleMouseMove