Replace playlist.indexOf by getCurrentMusicIndex