r.style.clip = "rect(0px," + volume / 2 + "px,40px,0px)"
  }
}

VideoPlayer.prototype.update_player_progress = function() {
  var self = this
  var player = this.player
  var playerDiv = this.playerDiv
  var currentTime = player.currentTime;
  if (self.scrubTime != null) {
    currentTime = self.scrubTime;
  }
  var progressBar = playerDiv.getElementsByClassName('player-progress-value')[0];
  if (player.duration && progressBar) {
    var width = (currentTime / player.duration * 100).toFixed(2);
    if (widt