/***********************************************************/
/* 0 nsClosed Content file is closed. 
/* 1 nsLoadingASX Loading an Advanced Stream Redirector (ASX) file. 
/* 2 nsLoadingNSC Loading an .nsc station file. 
/* 3 nsLocating Locating the server. 
/* 4 nsConnecting Connecting to the server. 
/* 5 nsOpening Opening or listening for the stream. 
/* 6 nsOpen Content file is open. 
/***********************************************************/
void CMusicDlg::OnOpenStateChangeMediaplayer1(long OldState, long NewState) 
{
 RETAILMSG(1,(L"OpenOldState: %d OpenNewState: %d\n",OldState,NewState));
}

/*************************************************************/
/* 0 - (未初始化)还没有调用send()方法
/* 1 - (载入)已调用send()方法,正在发送请求
/* 2 - (载入完成)send()方法执行完成,已经接收到全部响应内容
/* 3 - (交互)正在解析响应内容
/* 4 - (完成)响应内容解析完成,可以在客户端调用了
/************************************************************/
void CMusicDlg::OnReadyStateChangeMediaplayer1(long ReadyState) 
{
 RETAILMSG(1,(L"ReadyState: %d\n",ReadyState));
 switch(ReadyState)
 {
  case 0:
  case 1:
  case 2:
  case 3:
   {

       //设按钮为不可用,直到NewState为4
   }
  break;

  case 4:
   {
    //设按钮为可用
 }
}

void CMusicDlg::OnErrorMediaplayer1() 
{
 RETAILMSG(1,(L"Error!\n"));
 //当前文件翻放错误,可放下一首
}