コード例 #1
0
 //暂停
 public void Puase()
 {
     TemStr   = "";
     TemStr   = TemStr.PadLeft(128, Convert.ToChar(" "));
     ilong    = APIClass.mciSendString("pause media", TemStr, TemStr.Length, 0);
     mc.state = State.mPuase;
 }
コード例 #2
0
 //播放Mp3WmaWmv
 public void play_Mp3WmaWmv()
 {
     TemStr = "";
     TemStr = TemStr.PadLeft(127, Convert.ToChar(" "));
     APIClass.mciSendString("play media", TemStr, TemStr.Length, 0);
     mc.state = State.mPlaying;
 }
コード例 #3
0
 //停止
 public void StopT()
 {
     TemStr   = "";
     TemStr   = TemStr.PadLeft(128, Convert.ToChar(" "));
     ilong    = APIClass.mciSendString("close media", TemStr, 128, 0);
     ilong    = APIClass.mciSendString("close all", TemStr, 128, 0);
     mc.state = State.mStop;
 }