} catch (Exception e) {}
}
protected void playSong() {
ItunesHost playHost = null;
if(!playstop){
stopPlaying();
playingRow = -1;
playstop=true;
return;
}
final int selection = songTable.getSelectedRow();
if (selection > 0){
SongData songData = new SongData(null,
sorter.getAddressAt(selection),
sorter.getHostNameAt(selection),
Request.ITUNES_PORT,
sorter.getDBIDAt(selection).intValue(),
sorter.getSongIDAt(selection).intValue(),
sorter.getFormatAt(selection),
sorter.getSizeAt(selection),
sorter.getSessionIDAt(selection).intValue(),
null,
null
);
synchronized(knownIPs){
for (int i = 0; i < knownIPs.size(); i++) {
playHost = (ItunesHost) knownIPs.get(i);
if (playHost.getAddress().equals(songData.server))
break;
}
}
_playStatus = new ConnectionStatus(playHost);