2010-04-28 120 views
0

我打算编写一个函数,在Windows Mobile 6.0上从URL播放mp3 file,而无需将所有流下载到手机。我阅读了一些文档,并遇到了一些问题。在Windows Mobile上播放音频网址

使用NAudio.dll :DLL不在为Windows Mobile

兼容使用DirectShowLib.dll:还没有找到办法从音频流得到的。

确实我们在Windows Mobile 6.0中无法获得audio Url Stream?有什么方法可以帮助我吗?

回答

0

我发现Bass library工作以及对我的具体问题 - 从URL播放MP3音频在Windows Mobile 6

添加bass_cp.dll到您的解决方案。并确保将bass.dll复制到您的执行目录中。

而你需要做的是非常简单的:

  int stream = Bass.BASS_StreamCreateURL(strUrl, 0, 0, null, IntPtr.Zero); 
      Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); 
      Bass.BASS_ChannelPlay(stream, false); 

当然您注册DLL后。然后添加此代码行:

  BassNet.Registration(string email, activated key); 
0

哪个windows mobile? 6.5或7?

7使用Silverlight,所以它应该很容易做流畅的流(从来没有尝试过)。

6+我不太确定,也许使用WCF文件流来获取流?

+0

我正在使用Windows Mobile 6 – Thyphuong 2010-04-29 01:17:42