h > 100) {
      width = 100;
    }
    progressBar.style.width = width + "%";
  }
  window.requestAnimationFrame(self.update_player_progress);
}

VideoPlayer.prototype.pause = function() {
  log('Pausing');
  this.paused_ = true
  this.player.pause();
}

VideoPlayer.prototype.setVolume = function(volume, save) {
  log('Set volume ' + volume.toString() + " save: " + save.toString());

  // don't store if we're silently muting
  if (volume || save) {
    this.player.volume = volume
  }
  if (volume == 0) {
 