[問題] ppc上播放mp3
各位大大好
請問,我要在ppc上執行"播放"的功能,但目前只能播.wav
我需要.wav和.mp3都能播放,該怎麼寫呢?
附上code,是能播.wav的
請大大們指點…該怎麼改才能播mp3呢?謝謝謝謝
private void btnPlay05_Click(object sender, EventArgs e)
{
string tmp = "aaa.wav";
if (File.Exists("\\SD 卡\\My Documents\\" + tmp))
{
string path = "\\SD 卡\\My Documents\\" + tmp;
try
{
ProcessStartInfo pInfo_play = new ProcessStartInfo();
pInfo_play.FileName = path;
pInfo_play.UseShellExecute = true;
Process p = Process.Start(pInfo_play);
}
catch (OpenNETCF.Win32.WinAPIException)
{
MessageBox.Show("請安裝播放軟體");
}
}
else
{
MessageBox.Show("我傻嘛~");
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.137.202.144
→
09/23 20:00, , 1F
09/23 20:00, 1F
→
09/23 20:01, , 2F
09/23 20:01, 2F
→
09/23 20:01, , 3F
09/23 20:01, 3F
→
09/23 22:53, , 4F
09/23 22:53, 4F
→
09/23 22:54, , 5F
09/23 22:54, 5F
→
09/24 12:25, , 6F
09/24 12:25, 6F
→
09/25 19:56, , 7F
09/25 19:56, 7F
→
09/25 19:57, , 8F
09/25 19:57, 8F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章