我正在写一小段代码
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("http://..../file.mid");
mediaPlayer.prepare();
mediaPlayer.start();
无效,
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("http://..../file.mp3");
mediaPlayer.prepare();
mediaPlayer.start();
工作正常。
答案 0 :(得分:0)
请在实用论坛上查看此主题: Java SE5 javax.sound (MIDI) classes removed from Android libraries?
您最好的选择似乎是通过JetPlayer class