发布时间:2019-07-02 13:35:42编辑:auto阅读(1685)
package com.stevezong.mp3palyer;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
public class Palyer {
public static void main(String[] args) {
try {
File file = new File("d:/music");
File[] files = file.listFiles();
for(File sub:files){
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(sub));
Player player =new Player(bis);
player.play();
player.close();
}
} catch (JavaLayerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
上一篇: EIGRP实验 3 :EIGRP 拓扑、
下一篇: Simple L2TPv3 Dynami
51559
51130
41656
38411
32901
29875
28593
23553
23484
21829
1977°
2681°
2242°
2175°
2620°
2193°
2937°
4865°
4698°
3345°