public TrackInfo getCurrent ( ) { TrackInfo trackInfo = null ; try { trackInfo = queue . get ( position ) ; } catch ( IndexOutOfBoundsException e ) { trackInfo = null ; } return trackInfo ; }
returns the current played track or null