现要弄个简单的播放器,是通过jmf来进行播放的。
播放本地的音乐文件时,倒正常,但网络音乐却无法播放,NB提示java.io.IOException: Unable to open a URL connectionjava.io.IOException: Unable to open a URL connection部分代码如下:
url=new URL("http://d19.lewap.cn/music1113/201009/20100927/27151343_RNUsM.mp3");player=Manager.createRealizedPlayer(url);
这是为什么呢??
怎样才能解决?谢谢!!
播放本地的音乐文件时,倒正常,但网络音乐却无法播放,NB提示java.io.IOException: Unable to open a URL connectionjava.io.IOException: Unable to open a URL connection部分代码如下:
url=new URL("http://d19.lewap.cn/music1113/201009/20100927/27151343_RNUsM.mp3");player=Manager.createRealizedPlayer(url);
这是为什么呢??
怎样才能解决?谢谢!!
若把那个url改为一个au文件的链接(这个au文件很小的,才几十K),可以播放~
如下:
url=new URL("http://www.iagora.com/~espel/zoinx/au/esane.au");
player=Manager.createRealizedPlayer(url);
其原因是什么呢?(jmf已经装好mp3插件的了)