import java.io.FileInputStream;
import javazoom.jl.player.Player;
public class Demo {
public static void main(String[] args) throws Exception {
//建立文件输入流 注意文件的路径
FileInputStream fis=new FileInputStream("E://音乐//Fade.mp3");
Player player=new Player(fis);
//播放音频
player.play();
}
}
网友评论