日期:2014-05-17 浏览次数:21367 次
//播放状态,1=停止,2=暂停,3=播放,6=正在缓冲,9=正在连接,10=准备就绪
if(1==(int)this.SongPlayer.playState)
{
if (t.Equals("顺序播放"))
{
int row = (this.PlaySongRow + 1) % this.lstSong.Items.Count;
this.lstSong.Items[row].Selected = true;
this.SongPlayer.URL = this.lstSong.Items[row].SubItems[3].Text;
SongPlayer.Ctlcontrols.play(); //播放歌曲
ChangeSongColor();
//去掉以下这行代码后可以播放下一首歌曲,
//将其注释掉后就停止播放了。
MessageBox.Show(this.lstSong.Items[row].SubItems[3].Text);
}
}
//播放状态,1=停止,2=暂停,3=播放,6=正在缓冲,9=正在连接,10=准备就绪
if(1==(int)this.SongPlayer.playState)
{
if (t.Equals("顺序播放"))
{
int row = (this.PlaySongRow + 1) % this.lstSong.Items.Count;
this.lstSong.Items[row].Selected = true;
this.SongPlayer.URL = this.lstSong.Items[row].SubItems[3].Text;
Thread thd = new Thread (delegate() {
SongPlayer.Ctlcontrols.play(); //播放歌曲
});