尝试从服务器到客户端浏览器播放wav文件时出错

时间:2014-04-28 06:59:26

标签: asp.net vb.net

我正在尝试使用以下方式加载和播放wav文件:

Dim MyPlayer As New SoundPlayer()
MyPlayer.SoundLocation = "http://api.smartercall.in/storage/" & ds.Tables(0).Rows(0).Item("FileName").ToString()
MyPlayer.Play()

托管此代码后出现以下错误

System.Media.SoundPlayer.ValidateSoundData(Byte[] data)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at SmartCall.staff_campaign.btnplay_Click(Object sender, EventArgs e)

0 个答案:

没有答案