         mediaElement.addEventListener 'pause', feedbin.playState
         mediaElement.addEventListener 'loadedmetadata', feedbin.loadedmetadata
         if play
+          feedbin.play()
           mediaElement.play()
         else
           feedbin.timeRemaining(feedbin.nowPlayingData.entryId)

    if progress = feedbin.loadProgress(entryId)
      durationElement = $("[data-behavior~=audio_duration_#{entryId}]")
      left = progress.duration - progress.progress
      minutes = Math.ceil(left / 60);
      if minutes == 1
        message = "1 minute left"
      else
        message = "#{minutes} minutes left"

        field = form.find('#recently_played_entry_duration').val(window.player.duration)
        form.submit()

  play: ->
    feedbin.forcePlay = true
    buttons = $("[data-behavior~=audio_play_#{feedbin.nowPlayingData.entryId}]")
    buttons.addClass('playing')
    buttons.removeClass('paused')

  togglePlay: ->
    if window.player.paused
      window.player.play()
    else
      window.player.pause()

  setDuration: (entryId, duration) ->
