public void addTrack ( SoundCloudTrack track , boolean playNow ) { checkState ( ) ; mPlayerPlaylist . add ( track ) ; for ( CheerleaderPlaylistListener listener : mCheerleaderPlaylistListeners ) { listener . onTrackAdded ( track ) ; } if ( playNow ) { play ( mPlayerPlaylist . size ( ) - 1 ) ; } }
Add a track to the current SoundCloud player playlist .