package extended;
import com.jitcaforwin.extended.JitcaiTunesController;
import com.jitcaforwin.extended.api.IJitcaITunesController;
import com.jitcaforwin.extended.api.track.Track;
public class CurrentTrackDemo {
public static void main(String args[]) {
IJitcaITunesController iTunes = new JitcaiTunesController(true);
Track track = iTunes.getPlayerController().currentTrack();
if (track == null) {
System.out.println("Currently no track played!");
} else {
System.out.println(track.getTitle() + " by " + track.getArtist()
+ " is currently played. \n");
}
iTunes.close();
}
}