|
@ -42,7 +42,10 @@ public class CDPlayer implements Device { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void next() { |
|
|
public void next() { |
|
|
|
|
|
List<String> playList = Arrays.asList(loadedCD.getPlayList()); |
|
|
|
|
|
int indexOfActualPlayTrack=playList.indexOf(actualPlayTrack); |
|
|
|
|
|
|
|
|
|
|
|
this.actualPlayTrack=playList.get(indexOfActualPlayTrack +1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -115,7 +118,8 @@ public class CDPlayer implements Device { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public String getSongByNumber(int songNr){ |
|
|
public String getSongByNumber(int songNr){ |
|
|
return ""; |
|
|
|
|
|
|
|
|
List<String> playList = Arrays.asList(loadedCD.getPlayList()); |
|
|
|
|
|
return playList.get(songNr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public String getActualPlayTrack() { |
|
|
public String getActualPlayTrack() { |
|
|