 "user-activity");
    })

    var showBufferingTimeout = null;
    var canShowBuffering = false;
    var lastPlayPos = 0;
    this.bufferCheckInterval = setInterval(function() {
      if (!player) {
        return;
      }
      currentPlayPos = player.currentTime;
      if ((self.spinner.style.display == 'none' ||
          self.spinner.style.display == '')
        && player.currentTime == lastPlayPos
        && !player.paused) {
          if (canShowBuffering) {
            self.spinner.style.display = '