     @volume = @current.volume
     @fadeingOut = true
     @doFadeout()
+    @iterator = 0
 
   doFadeout: ->
     interval = 1 * @second

        else
          @current.volume -= volumeStep
        #console.log "Decreasing volume by #{volumeStep}"
      console.log "#{@fadeoutStarted} + #{@fadeoutTime} <= #{@now()} + #{@fadeinTime}"
      if @fadeoutStarted + @fadeoutTime <= @now() + @fadeinTime && @next.paused
        @next.volume = @volume
        console.log("start playing on next #{@next.id}")
        @next.play()
      console.log("next: #{@next.id}")
      @finishFadeout(fadeout) if @current.volume == 0
    , interval

  finishFadeout: (fadeoutInterval) ->

    player.play()
  $('#pause').on 'click', ->
    player.pause()
