80,350
社区成员
发帖
与我相关
我的任务
分享
try {
player = new MediaPlayer();
player.setDataSource(这里放的直接是网络路径);
player.prepare();
player.start();
int AudioSessionid = player.getAudioSessionId();
Visualizer_View.PlayStart(AudioSessionid,player);
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
Utils.show(RoadFunSoundActivity.this, "文件找不到");
}