if(!Thread.currentThread().isInterrupted()) { System.out.println(!Thread.currentThread().isInterrupted()); //声明一个File对象 File mp3 = new File("E:\\Download\\10092.mp3"); //创建一个输入流 FileInputStream fileInputStream; try { fileInputStream = new FileInputStream(mp3); //创建一个缓冲流 BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream); //创建播放器对象,把文件的缓冲流传入进去 player = new Player(bufferedInputStream); //调用播放方法进行播放 player.play(); } catch (FileNotFoundException e) { e.printStackTrace(); }catch (JavaLayerException e) { e.printStackTrace(); } }
2023-02-14 22:28:46 140KB java 播放音乐 jar
1
jlayer-1.0.1.jar 使用java编写MP3播放器,用到的解析Mp3格式包。jl1.0.1.jar 内含使用说明
2021-07-14 13:02:09 130KB jl1.0.1.jar jlayer-1.0.1.jar java播放音乐 MP3
1