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(); |
|
} |
} |
中级程序员
by: LinKin 发表于:2020-12-04 13:00:02 顶(1) | 踩(0) 回复
可以
回复评论