   (->
     playlist = $('#playlist-data').data 'playlist'
     currentTrack = 0
+    trackUpdated = false
     currentPlayer = ''
 
     # Soundcloud Player


    # Main public player
    PlayerController.mainPlayer = (->
      currentPlayer: ->
        currentPlayer

      play: ->
        track = playlist[currentTrack]
        currentPlayer = if track.site_id == 1 then soundcloudPlayer else youtubePlayer
        currentPlayer.playSong track

      stop: ->
        currentPlayer.stop()

      # More for testing purposes
      printPlaylist: ->


      initYoutube: ->
        youtubePlayer.setWidget()

    )()
  )()


  # User presses play (Will 'start' or 'resume')
  #   - If there is a paused song in one of the players should play
  #   - If no song has been played yet, the proper player should be loaded
  #       and song played
