简体   繁体   English

使用纯Java播放MP3文件

[英]Playing MP3 files using pure Java

Is it possible at all to play MP3 files using only the built-in libraries provided with JDK. 是否可以仅使用JDK随附的内置库来播放MP3文件。 I've heard of the javax.media library which is found is 1.7 I think. 我听说javax.media库是1.7。 By the way I know of jlayer but I don't want to use it. 顺便说一句,我知道jlayer,但我不想使用它。

Yes you can play MP3 file, but you need to download MP3 plugin because java framework only supports WAV and AIFF files. 是的,您可以播放MP3文件,但是您需要下载MP3插件,因为Java框架仅支持WAV和AIFF文件。

Check http://www.morgenstille.at/blog/how-to-play-a-mp3-file-in-java-simple-and-beautiful/ 检查http://www.morgenstille.at/blog/how-to-play-a-mp3-file-in-java-simple-and-beautiful/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM