File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Playing MP3 files in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Playing MP3 files in java" Watch "Playing MP3 files in java" New topic

Playing MP3 files in java

Gavin Bonner

Joined: Feb 04, 2004
Posts: 8
Hi, I was wondering how i can play an mp3 file in java. I have downloaded javaLayer from the sun web site, but i am not sure exactly how to play a file or what classes to use for it.
Can anyone help me? :roll:
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Last I know is that MP3 functionality in the sound APIs is still an RFE (request for enhancement) which would mean you'll need some 3rd party library instead.
Simplest would be to search for it using your favourite search engine.

R Jelda

Joined: May 13, 2002
Posts: 26
I prefer using QuickTime For Java packages.
Because even they provide a gui api.


"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas." -George Bernard Shaw
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Gavin!
I'm moving this thread to the Other Java APIs forum...
[ February 05, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Playing MP3 files in java
It's not a secret anymore!