Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 132,147 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,949 people online right now. Registration is fast and FREE... Join Now!




Playing mp3 Files

3 Pages V  1 2 3 >  
Reply to this topicStart new topic

Playing mp3 Files, ...How to? (More specifically)

Locke37
post 9 Oct, 2008 - 01:09 PM
Post #1


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


Ok, so I've done my part. I searched Google for god knows how long, and only came up with SourceForge-like projects that just are basically Windows Media Player(s), only different.

I want to add mp3 capability to my program, just mp3, nothing more. I just want the ability to play mp3 files with a written class.

I figured since I don't have any clue on how to do this...you guys could help me out. smile.gif

(No, this isn't a homework assignment. I'm not enrolled in any Java classes. Only C++ smile.gif)

I don't have any code at the moment, but I will be researching this as much as I can, hopefully to get this answered myself.

smile.gif

This post has been edited by Locke37: 9 Oct, 2008 - 01:10 PM
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 9 Oct, 2008 - 02:27 PM
Post #2


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 858



Thanked 4 times

Dream Kudos: 25
My Contributions


http://forums.sun.com/thread.jspa?threadID...sageID=10175588
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 9 Oct, 2008 - 04:36 PM
Post #3


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


QUOTE(abgorn @ 9 Oct, 2008 - 03:27 PM) *


...Didn't come across that one. unsure.gif
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 9 Oct, 2008 - 04:43 PM
Post #4


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,968



Thanked 13 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


I don't believe that the javax.media packages are standard in the JDK. wav files can be done with the JDK (and without the bad applet package). It should be possible to play mp3s in a similar fashion, but I'm too sick at the moment to think logically to work out how my code works tongue.gif

If you don't have a good solution, I'll take a stab at it in a few days.

This post has been edited by William_Wilson: 9 Oct, 2008 - 04:43 PM
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 9 Oct, 2008 - 04:54 PM
Post #5


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


I have the JMF packages.

I just don't know if any standard JRE on another system will accept JMF.
User is offlineProfile CardPM

Go to the top of the page

pbl
post 9 Oct, 2008 - 04:58 PM
Post #6


D.I.C Lover

Group Icon
Joined: 6 Mar, 2008
Posts: 2,946



Thanked 186 times

Dream Kudos: 75
My Contributions


QUOTE(Locke37 @ 9 Oct, 2008 - 05:54 PM) *

I have the JMF packages.

I just don't know if any standard JRE on another system will accept JMF.


If it is in your .jar no problem
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 9 Oct, 2008 - 05:38 PM
Post #7


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


QUOTE(pbl @ 9 Oct, 2008 - 05:58 PM) *

QUOTE(Locke37 @ 9 Oct, 2008 - 05:54 PM) *

I have the JMF packages.

I just don't know if any standard JRE on another system will accept JMF.


If it is in your .jar no problem


So, if I were porting this application around to different systems, there'd be no problem at all? Or would I have to include the jmf.jar in the directory with my application in it?
User is offlineProfile CardPM

Go to the top of the page

pbl
post 9 Oct, 2008 - 05:59 PM
Post #8


D.I.C Lover

Group Icon
Joined: 6 Mar, 2008
Posts: 2,946



Thanked 186 times

Dream Kudos: 75
My Contributions


QUOTE(Locke37 @ 9 Oct, 2008 - 06:38 PM) *

So, if I were porting this application around to different systems, there'd be no problem at all? Or would I have to include the jmf.jar in the directory with my application in it?


The eaisest way is to put both your application and the files contained into jmf.jar into your own .jar
The user will just have to double click on the .jar
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 9 Oct, 2008 - 06:05 PM
Post #9


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


QUOTE(pbl @ 9 Oct, 2008 - 06:59 PM) *

QUOTE(Locke37 @ 9 Oct, 2008 - 06:38 PM) *

So, if I were porting this application around to different systems, there'd be no problem at all? Or would I have to include the jmf.jar in the directory with my application in it?


The eaisest way is to put both your application and the files contained into jmf.jar into your own .jar
The user will just have to double click on the .jar


Interesting...now how would I go about that? (I don't have experience in making jar files, I usually just let NetBeans do it for me smile.gif)
User is offlineProfile CardPM

Go to the top of the page

pbl
post 9 Oct, 2008 - 06:14 PM
Post #10


D.I.C Lover

Group Icon
Joined: 6 Mar, 2008
Posts: 2,946



Thanked 186 times

Dream Kudos: 75
My Contributions


QUOTE(Locke37 @ 9 Oct, 2008 - 07:05 PM) *

Interesting...now how would I go about that? (I don't have experience in making jar files, I usually just let NetBeans do it for me smile.gif)


You are on Windows or Linux or VMS or Unix ?
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 9 Oct, 2008 - 06:22 PM
Post #11


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


Windows Vista.
User is offlineProfile CardPM

Go to the top of the page

pbl
post 9 Oct, 2008 - 06:28 PM
Post #12


D.I.C Lover

Group Icon
Joined: 6 Mar, 2008
Posts: 2,946



Thanked 186 times

Dream Kudos: 75
My Contributions


QUOTE(Locke37 @ 9 Oct, 2008 - 07:22 PM) *

Windows Vista.


OK give me 15 minutes... I'll have to cut & paste some .bat file and add explation to it... I start to edit the answer right away but will take a few minutes...
User is offlineProfile CardPM

Go to the top of the page

3 Pages V  1 2 3 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 01:13PM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month