i m not getting how to play a mp3 file using applet? i m using AudioClip A = getAudioClip(x); where x is --> URL x=C:\'Users\'gourav\'java_pr; its just a try! i donot know how to use this. it is showing error. tell me how to use audioclip interface?
gourav1 -12 Posting Whiz in Training
Recommended Answers
Jump to Postproblem with scope
you're declaring and initializing A within your try block.
put the A.play();
call also in the try block
Jump to Postvery well possible.
playing .mp3 files is not standard supported in Java.
if you want to play .mp3 files, you can use (for instance) JMF (Java Media Framework), or, what I would recommend, since it's quite easy and all you need to do is add a single .jar file to …
All 6 Replies
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
rotten69 20 Posting Whiz
gourav1 -12 Posting Whiz in Training
stultuske 1,116 Posting Maven Featured Poster
gourav1 -12 Posting Whiz in Training
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.