codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » JAVA » Article

Java MP3 Player

Article by: David Barron (10/7/2002)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Sponsored by: FindMyHosting - Web Hosting Search
Summary: A fully functioning MP3 Player with complete source code available for download
Viewed: 66443 times Rating (60 votes): 
 4.5 out of 5
 Rate this Article  Read Comments  Post Comments

Java MP3 Player



Download Project (137KB)
View online documentation

There are loads of MP3 players out in the world - freeware, shareware and commercial, and they all get the job done. So why, you may ask, write another one?

A couple of reasons, really. First, because there aren't many written in Java and I wanted to demonstrate what Java is capable of. Second, it was a good learning experience for me. Finally, because I wanted something to use that was a little less obtrusive than WinAmp or MusicMatch. Don't get me wrong those are both great products, but I wanted something that took up less screen real estate and memory. With Java Sourcecode.

For more information read the ReadMe file in the project zip file.




CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Java MP3 Player'
Posted by :  Archive Import (imran) at 15:19 on Friday, October 25, 2002
hello i really appreiciate that your player too good i am using it for listening the songs
thanks
Posted by :  Archive Import (Gopal Kulkarni) at 06:27 on Tuesday, November 19, 2002
Hello,

Question: Does it work on Linux?

Regards,
Gopal
Posted by :  Archive Import (Mehul) at 22:09 on Saturday, December 28, 2002
Hi,
When I compile the code, it gives errors for javax.media package. I also checked the api's for java, but the api 1.3 and 1.4 don't seem to have those packages. Am I doint something wrong here?


Thanks,
-Mehul
Posted by :  Archive Import (JT) at 01:07 on Sunday, December 29, 2002
Mehul,

I think the code relies on the Java Media Framework (JMF) which is seperately downloadable from Sun's website, but must be placed in your classpath for the compiler/VM to locate the missing classes.

-JT
Posted by :  Archive Import (satish) at 04:31 on Thursday, January 09, 2003
hi,
i want some help from you and i am doing a project and without knowing how difficult it is i gave the title of mp3 player and converter to wav and on downloading a project from javazoom the process of decoding and playing itself very difficult so please give a brief documentation and how to decode please
Posted by :  Archive Import (I LIKE BOOGERS!!!) at 13:46 on Tuesday, January 21, 2003
I LIKE BOOGERS!!!
Posted by :  Archive Import (Johnny Klopper) at 14:23 on Sunday, February 02, 2003
Small bug I spotted:

RandomAccessFile in MPEGAudioFrameHeader was not closed after usage.

Otherwise thanks for the hard work! :D



Posted by :  Archive Import (Kantharaju) at 18:13 on Sunday, March 02, 2003
This is a really good program
It worked fine and I am using it
Thanks a lot David Barron
Posted by :  Archive Import (Charles) at 21:47 on Friday, March 07, 2003
Very nice. Excellent.
Posted by :  Archive Import (Neo<-Web->Geek) at 11:11 on Tuesday, March 11, 2003
Im having troubles with compiling
ive been compiplng the files seperately, and two of them wont compile because the need the other file
do i eed to put them into a project and compile them?
Posted by :  Archive Import (Kye Yeung) at 09:11 on Wednesday, March 19, 2003
hi, do you know how to get the frequencies from a MP3 file? im tring to calculate the BPM of the file. Got any suggestions?

nice program by the way
Posted by :  Archive Import (bob) at 23:52 on Sunday, April 20, 2003
hi, i downloaded this program and jmf.
so nicely compiled.

but i tried to play music, this error messages occurs

Error value: 80040216
Error: Unable to realize com.sun.media.amovie.AMController@1236cd5

how do i overcome this error?

Posted by :  Archive Import (Paata) at 08:42 on Tuesday, May 13, 2003
hii .
When I compile the code, it gives errors for javax.media package. I also checked the api's for java, but the api 1.3 and 1.4 don't seem to have those packages. Am I doint something wrong here? what can i do ?
Posted by :  Archive Import (Magnus Turesson) at 09:09 on Thursday, May 22, 2003
Hello

I downloaded this mp3 player but when I'm trying to compile I got execeptions like this.

ID3v2Frame.java:95: Incompatible type for =. Explicit cast needed to convert char to byte.
group = '\0';

Best Regard
Magnus
Posted by :  Archive Import (jon) at 03:07 on Saturday, May 31, 2003
another small error
an unreachable statement at line 270 of ID3v1Tag, ie u put in an extral ";" thats an idication u were programming too late at night, well it is with me any way,
but good work neway
Posted by :  Archive Import (Srinivasa Raja) at 04:58 on Thursday, June 05, 2003
It is Great.

i have one doubt.can u clear that?
I want to connect CD Writer through JAVA,i have to write my retrieved date from database in to a CD.How can i access Cd writer through JAVA?is it possible?Can u please send me a sample code?

Posted by :  Archive Import (Talha) at 05:05 on Saturday, June 21, 2003
Hi,
I have got every thing to work, it compiles and runs as well. But when I attempt to add a mp3 file to the playlist it throws 'IOException' and does not add the file to the playlist thats why no file can be played by this player. Upon looking at the description of Java IOException in Java API Documentation I found that IOEception is thrown when some sort of IO error happens.
What could possibly I am doing wrong? Any Ideas any one?

Talha
Posted by :  Archive Import (ter) at 06:10 on Wednesday, July 02, 2003
hi,
i'm appreciated that i finally found
a mp3layer realized in java...
but for my dissapointing i tried it and when pressing the play-button the application crushes with
java.lang.UnsatisfiedLinkError: openFile
at com.sun.media.amovie.ActiveMovie.openFile(Native Method)

of course i've installed the JMF 2.1.1
and compiling is no problem, only when i want to play my mp3-file the application has a problem.
does anyone have any idea ?
thanx
Posted by :  Archive Import (sajeev) at 09:12 on Monday, July 07, 2003
It is Great.

I have one doubt.an u clear that?
I want to connect CD Writer through JAVA,i have to write my retrieved date from database in to a CD.How can i access Cd writer through JAVA?is it possible?Can u please send me a sample code

regards
Sajeev
Posted by :  Archive Import (kory) at 14:12 on Wednesday, July 09, 2003
ello,
i'm trying to find a good player that i can put on a website to play certain music. does this player do that?
Posted by :  Archive Import (prem) at 07:16 on Thursday, July 10, 2003
a real player a real intersting thing thing for what i develop so i got some helping hands for my fisrt step in the carrier
Posted by :  Archive Import (Naveed Ahmed Tanoli) at 04:00 on Monday, July 14, 2003
I have found this article excellent.
I think this is a good effort in this field.
Keep it up.
Posted by :  Archive Import (Arber Rogova) at 10:43 on Tuesday, July 22, 2003
Hi, its working perfect and now im trying to add some more lines.

My idea is to put everithing on JDesktopane and made everything with JInternalFrames :)
Posted by :  Archive Import (Navid) at 12:19 on Tuesday, July 22, 2003
I would want to compile this nice little JAVA MP3 Player, but what is the best compiler that i could be able to download, give me a link.

best reguards,

Navid
Posted by :  Archive Import (JavaZOOM) at 09:18 on Sunday, August 10, 2003
Another MP3 OGG Vorbis Player 100% Java :

http://www.javazoom.net/jlgui/jlgui.html
Posted by :  Archive Import (Binu) at 06:35 on Wednesday, August 27, 2003
i want ur java mp3 player and its source code
Posted by :  Archive Import (tanmay) at 12:04 on Wednesday, August 27, 2003
Hi David,
I am a T.E cmpn engg student and wanted to do make a mp3 player in java......ur player seems to do just that.I wanted u to help me out in designing my own mp3 player in java..,,can u in any way explain me a step by step procedure to design the same.

regards,
Tanmay
Posted by :  Archive Import (John Baker) at 17:06 on Saturday, September 13, 2003
I'm part of the JJukeBox project (www.jjukebox.com). We're eager to find a decent ogg/mp3 player, that isn't based on JMF or JavaLayer (JlGui). Both are completely rubbish, and any patches we submit to JavaZoom (JavaLayer/JlGui) are ignored, and we've had to heavily rewrite parts of JlGui to make it remotely usable. I was quite amazed at how poor parts of the project were, in terms of the (non existent) events system, for example.

If you know of a project that will do ogg/mp3s reliably (broken and knackered mp3s/oggs, with a proper events system and the ability to multi-thread) then please let us know!

Cheers.

J
Posted by :  doomy! at 20:12 on Sunday, January 11, 2004
If anyone knows of any good compilers please tell me.

Iv got JCreator right now and im on a shareware lisesnce but i cant figure out how to compile them all at once

Than'y' good sir. <(-_-)> �<('.-<)
^^^^^^^^^^^^
Oh No!

P.S. The shareware is the full version! Just doesn't last that long :(
Posted by :  Ryan007007 at 15:22 on Friday, September 10, 2004
Iv been using java for a few months now and I want to try and create my own mp3 player. If you can give some pointers that would be great. Ill need all the help I can get.

Thanks
Posted by :  coolkushi84 at 06:10 on Sunday, November 14, 2004
hi ,,i have downloaded your project but i am not able to compile it successfully can u send me the proper way how can i make it run. can u send me reply as soon as possible.
Posted by :  dc42390 at 20:08 on Tuesday, June 28, 2005
hello, i'm with JaMS, yet another Java-based media player. I was wondering is anybody coud help us, since most of the teams are newbs, and know little about media player development. If you are interested, please email dc42390@gmail.com
Posted by :  stigc at 15:12 on Friday, July 08, 2005
JavaLayer is indeed very stable. I'm running a project based on both JavaLayer and Jorbis and it runs perfectly. Please try iy out at http://www.stigc.dk/projects/JavaTunes/.
Posted by :  kooiping1984 at 02:48 on Wednesday, July 13, 2005
i dunno how to compiled it in the proper way...
can some1 pls teach me the proper way?


To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
A simple way to JTable
by Kanad Deshpande
Many face trouble while dealing with JTable. Here is simplest way to handle JTable.
Java MP3 Player
by David Barron
A fully functioning MP3 Player with complete source code available for download
Understanding Hibernate ORM for Java/J2EE
by Saritha.S.V
Hibernate is the most popular and most complete open source object/relational mapping solution for Java environments.Hibernate's goal is to relieve the developer from 95 percent of common data persistence related programming tasks.
ID Verification using JSP
by Nouman Rashid
One of the most important parts of web development is to make sure that only authorized users get access to certain areas of the site. This tutorial takes a look at various steps involved in making JSP pages which validate a user ID and password from a MS Access database which contains the username and password.
Java Native Interface (JNI)
by Kanad Deshpande
Java Native Interface (JNI) is one of the intersting interface by java By using Java Native Interface (JNI) you can operate with other applications and libraries.
Login codes with JSP,JavaBean from mySQL database
by Prakash
my problem is can i have the code to login with the username and password using JSP and JavaBean/Servlets from mySQL database.When the user enters the username and password in the login page then it will go to the requested site.How to do it?
Java Speech Synthesizer
by David Barron
Small and simple. Type a sentence and press enter and your computer will speek to you.
simple Java Development Environment
by David Barron
Program in JAVA with ease, using this development environment, or adapt it to your own needs.
Turn EJB components into Web services
by Krunal J Patel
Web services have become the de facto standard for communication among applications. J2EE 1.4 allows stateless Enterprise JavaBeans (EJB) components to be exposed as Web services via a JAX-RPC (Java API for XML Remote Procedure Call) endpoint, allowing EJB applications to be exposed as Web services. This article presents a brief introduction to JAX-RPC, outlines the steps for exposing a stateless session bean as a Web service, and provides the best practices for exposing EJB components as Web services
CORBA Technology
by Krunal Patel
CORBA defines an architecture for distributed objects. The basic CORBA paradigm is that of a request for services of a distributed object. Everything else defined by the OMG is in terms of this basic paradigm.








Recent Forum Threads
• Javascript problem with document.write and accented characters
• Re: sorting and Linked list
• Re: need help linked list
• Re: Help with arrays
• Re: Reading from a file
• Re: Why Use Method?
• Re: Help with a simple program
• Re: need help with quiz
• Re: Help with filesystem object & displaying in a table


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005