现要弄个简单的播放器,是通过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);
这是为什么呢??
怎样才能解决?谢谢!!