@Override
	public void run(){
		while(!interrupt){
			if (playList == null || playList.getCount() == 0) {
				interrupt = true;
				break;
			}
			playList.setSelectedIndex(curIndex);
			PlayListItem item = playList.getPlayListItem(curIndex);
			try {
				if (player.open(item.getPath(), null)) {
					//初始化改歌曲的信息
					frame.getMainPanel().initSong(item, id3Tag);
					
					header = player.getHeader();
					id3Tag = player.getID3Tag();
					int totalSec = (int)header.getDuration();
					frame.initProgress(totalSec);
					player.start(false, elapse);
				}
			} catch (IOException e) {
				e.printStackTrace();
			} finally{
				player.close();
				if (!isCustomSelected) {
					this.curIndex ++;
					this.curIndex %= playList.getCount();
					playList.setCurIndex(curIndex);
				}else{
					isCustomSelected = false;
				}
			}
		}
	}